Function at 0x403d10
Capabilities:
Initialize winsock library
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x32c
mov eax, dword [0x40f018]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
jmp 0x403d42
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4067e0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x412bf0
push 0x65
push ebx
mov dword [0x412c54], eax
call esi
push 0x64
push 0x412b88
push 0x69
push ebx
call esi
mov eax, ebx
call fcn.004041b0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, ebx
call fcn.00404230
add esp, 4
test eax, eax
jne 0x403da8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.004091cb
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..JoinServer.ini
push 0
push str.CustomerLicenseId
push str.JoinServerInfo
call edi
push str.STANDBY
push 0x40c628
push 0x65
lea ecx, [esp + 0x23c]
push str.__2.0.5___JoinServer__EX_03d__s____s_
push ecx
mov word [0x412b7c], ax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x412b80]
add esp, 0x14
lea edx, [esp + 0x230]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x412b80]
push ecx
mov ecx, 0x40f630
call fcn.00407390
mov edx, dword [0x412b80]
push 0
push str.MU_Server
push str.Brindado_por_SudamericaHost
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4040e3
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..JoinServer.ini
push 0x20
lea ecx, [esp + 0x218]
push ecx
push 0x40c84e
push str.JoinServerODBC
push str.JoinServerInfo
mov byte [esp + 0x228], al
mov dword [esp + 0x229], eax
mov dword [esp + 0x22d], eax
mov dword [esp + 0x231], eax
mov dword [esp + 0x235], eax
mov dword [esp + 0x239], eax
mov dword [esp + 0x23d], eax
mov dword [esp + 0x241], eax
mov word [esp + 0x245], ax
mov byte [esp + 0x247], al
mov byte [esp + 0x208], al
mov dword [esp + 0x209], eax
mov dword [esp + 0x20d], eax
mov dword [esp + 0x211], eax
mov dword [esp + 0x215], eax
mov dword [esp + 0x219], eax
mov dword [esp + 0x21d], eax
mov dword [esp + 0x221], eax
mov word [esp + 0x225], ax
mov byte [esp + 0x227], al
mov byte [esp + 0x1e8], al
mov dword [esp + 0x1e9], eax
mov dword [esp + 0x1ed], eax
mov dword [esp + 0x1f1], eax
mov dword [esp + 0x1f5], eax
mov dword [esp + 0x1f9], eax
mov dword [esp + 0x1fd], eax
mov dword [esp + 0x201], eax
mov word [esp + 0x205], ax
mov byte [esp + 0x207], al
call esi
push str..JoinServer.ini
push 0x20
lea edx, [esp + 0x1f8]
push edx
push 0x40c84e
push str.JoinServerUSER
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x20
lea eax, [esp + 0x1d8]
push eax
push 0x40c84e
push str.JoinServerPASS
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0xb
push 0x412b68
push 0x40c84e
push str.GlobalPassword
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0xdaa2
push str.JoinServerPort
push str.JoinServerInfo
call edi
push str..JoinServer.ini
movzx ecx, ax
xor eax, eax
push 0x10
lea edx, [esp + 0x1c8]
push edx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x1cc], 0
mov dword [esp + 0x1cd], eax
mov dword [esp + 0x1d1], eax
mov dword [esp + 0x1d5], eax
mov word [esp + 0x1d9], ax
mov byte [esp + 0x1db], al
push str.127.0.0.1
push str.ConnectServerAddress
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0xd905
push str.ConnectServerPort
push str.JoinServerInfo
call edi
push str..JoinServer.ini
push 0
push str.CaseSensitive
push str.JoinServerInfo
movzx esi, ax
call edi
push str..JoinServer.ini
push 0
push str.MD5Encryption
push str.JoinServerInfo
mov dword [0x412b78], eax
call edi
mov dword [0x412b74], eax
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x1f4]
push ecx
lea eax, [esp + 0x218]
mov ecx, 0x412ca0
call fcn.004069f0
test al, al
jne 0x404081
push str.Could_not_connect_to_database
push 1
call fcn.00408ea0
add esp, 8
jmp 0x4040f9
mov edx, dword [esp + 0x10]
push edx
mov ecx, 0x4dc4b0
call fcn.00407bf0
test al, al
jne 0x4040a0
mov esi, 0x412ca0
call fcn.00406a80
jmp 0x4040f9
push esi
lea eax, [esp + 0x1c4]
call fcn.00408bd0
test al, al
jne 0x4040c7
mov esi, 0x4dc4b0
call fcn.00407c80
mov esi, 0x412ca0
call fcn.00406a80
jmp 0x4040f9
call fcn.00402db0
mov eax, dword [0x412b80]
push 0
push 0x3e8
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4040f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
mov ecx, dword [0x412b80]
push 0
push 0x7d0
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0x69
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
mov esi, eax
call edi
test eax, eax
je 0x40416f
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x40415e
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jne 0x404137
mov edx, dword [0x412c54]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x40418e
mov ecx, dword [esp + 0x334]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004091cb
mov esp, ebp
pop ebp
ret 0x10