Function at 0x4034c0
Capabilities:
Copy file
Create process on windows
Hide graphical window
Read .ini file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4050e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
mov ebx, dword [esp + 0x4ac]
push ebp
mov ebp, ecx
mov al, byte [ebx]
push esi
mov byte [esp + 0xc], al
mov ecx, dword [esp + 0xc]
and ecx, 0xff
push edi
lea eax, [ecx - 6]
cmp eax, 0x1a
ja case.0x40350c.11
xor edx, edx
mov dl, byte [eax + 0x403a90]
jmp dword [edx*4 + 0x403a78]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x408438
push str.Version.txt
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x403586
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov dword [esp + 0x2c], eax
call edi
mov eax, dword [esp + 0x2c]
push esi
push 1
lea ecx, [esp + 0xcc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x30
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3a
lea edx, [esp + 0x6c]
push 0x20
inc ebx
push edx
push ebx
mov esi, 1
stosb byte es:[edi], al
call fcn.00402f60
mov edx, eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
push 0x3a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push 0x20
push eax
push edx
call fcn.00402f60
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3a
lea ecx, [esp + 0xac]
push 0x20
lea edx, [esp + 0xd0]
push ecx
push edx
stosb byte es:[edi], al
call fcn.00402f60
mov al, byte [esp + 0x98]
add esp, 0x30
test al, al
je 0x403659
lea esi, [esp + 0x88]
lea eax, [esp + 0x68]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40364b
test cl, cl
je 0x403647
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40364b
add eax, 2
add esi, 2
test cl, cl
jne 0x403623
xor eax, eax
jmp 0x403650
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test esi, esi
jne 0x4037a4
mov esi, 1
dec eax
mov ebx, esi
je 0x403741
dec eax
je 0x403734
mov eax, dword [ebp + 4]
push 0x40004
push 0x408424
push 0x40840c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
cmp eax, 6
sete cl
mov esi, ecx
test esi, esi
mov ebx, esi
je 0x40375f
push 0
push str.Main.exe
call fcn.00404850
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x2d]
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str..SERVER.ini
push 0
push str.CLIENTTYPE
push str.UPDATESERVER
stosb byte es:[edi], al
mov word [esp + 0x34], 5
mov byte [esp + 0x36], 0x12
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 8]
mov word [esp + 0x27], ax
push 0
lea eax, [esp + 0x28]
push 5
push eax
push ecx
mov ecx, ebp
call fcn.004044a0
test ebx, ebx
je 0x40375f
mov edx, dword [ebp + 4]
push 0
push 5
push 0x502
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x40350c.11
xor ebx, ebx
mov dword [0x4085c4], esi
jmp 0x4036b1
mov edx, dword [ebp + 4]
push 0x40000
push 0x408424
push 0x4083e4
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4036b1
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x24], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push str..Main.exe
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test esi, esi
jne case.0x40350c.11
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x40350c.11
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str..Main.exe
push 0
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x40350c.11
mov edx, dword [esp + 0x4bc]
mov ecx, ebp
dec edx
inc ebx
push edx
push ebx
call fcn.00403280
jmp case.0x40350c.11
mov eax, dword [0x408594]
push 0
push 0
push 0x405
mov ecx, dword [eax + 0x11c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push str..updateupdate.ini
push 0x4083e0
push str.Result
push str.Update
mov dword [ebp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, ebp
call fcn.00403e40
jmp case.0x40350c.11
mov edx, dword [esp + 0x4bc]
mov ecx, ebp
dec edx
inc ebx
push edx
push ebx
call fcn.00403410
inc dword [0x4085c0]
jmp case.0x40350c.11
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x1c]
cmp eax, ecx
jne 0x4039e1
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40388b
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp + 0x18], 0
lea esi, [ebp + 0x20]
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str..putmp.tmp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [sym.imp.USER32.dll_PostQuitMessage]
test eax, eax
jne 0x403923
push esi
lea ecx, [esp + 0x20]
push 0x4083d0
push ecx
call sub.MFC42.DLL_operator_1
push str._._r_n
lea edx, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x4bc], 0
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b0], 2
call fcn.00404be0
push 0x40030
push 0x40806c
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call edi
push 0
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x4b0], 0xffffffff
call fcn.00404be0
mov ecx, ebp
call fcn.00403ab0
test eax, eax
jne 0x40399c
push esi
lea eax, [esp + 0x24]
push 0x4083d0
push eax
call sub.MFC42.DLL_operator_1
push str._._r_n
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x4bc], 3
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b0], 5
call fcn.00404be0
push 0x40030
push 0x40806c
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call edi
push 0
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x4b0], 0xffffffff
call fcn.00404be0
push 0x4081dc
push str..putmp.tmp
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x4039d1
push 0x40010
push 0x40806c
push 0x408344
push eax
call edi
push 0
call ebx
jmp case.0x40350c.11
mov ecx, ebp
mov dword [ebp + 0x1c], 0
call fcn.00403e40
jmp case.0x40350c.11
add ebp, 0x20
lea edx, [esp + 0x18]
push ebp
push 0x408310
push edx
call sub.MFC42.DLL_operator_1
push str.__r_n_r_n
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x4b8], 6
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b0], 8
call fcn.00404be0
push 0x40030
push 0x4082f8
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x10]
mov dword [esp + 0x4b0], 0xffffffff
call fcn.00404be0
mov ecx, dword [esp + 0x4a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4a4
ret 8