Function at 0x403a20
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 0x403a52
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4066a0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x412be0
push 0x65
push ebx
mov dword [0x412c48], eax
call esi
push 0x64
push 0x412b78
push 0x69
push ebx
call esi
mov eax, ebx
call fcn.00403e90
mov eax, dword [ebp + 0x14]
push eax
mov ecx, ebx
call fcn.00403f10
add esp, 4
test eax, eax
jne 0x403ab8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0040908b
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..JoinServer.ini
push 0
push str.CustomerLicenseId
push str.JoinServerInfo
call esi
push str.STANDBY
push 0x40b4fc
push 0x12d
lea ecx, [esp + 0x23c]
push str.__2.2.0___JoinServer__EX_03d__s____s_
push ecx
mov word [0x412b70], ax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x412b74]
add esp, 0x14
lea edx, [esp + 0x230]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x412b74]
push ecx
mov ecx, 0x40f630
call fcn.00407250
lea edx, [esp + 0x30]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x403dc1
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..JoinServer.ini
push 0x20
mov byte [esp + 0x218], al
mov dword [esp + 0x219], eax
mov dword [esp + 0x21d], eax
mov dword [esp + 0x221], eax
mov dword [esp + 0x225], eax
mov dword [esp + 0x229], eax
mov dword [esp + 0x22d], eax
mov dword [esp + 0x231], eax
mov word [esp + 0x235], ax
mov byte [esp + 0x237], al
mov byte [esp + 0x1f8], al
mov dword [esp + 0x1f9], eax
mov dword [esp + 0x1fd], eax
mov dword [esp + 0x201], eax
mov dword [esp + 0x205], eax
mov dword [esp + 0x209], eax
mov dword [esp + 0x20d], eax
mov dword [esp + 0x211], eax
mov word [esp + 0x215], ax
mov byte [esp + 0x217], al
mov byte [esp + 0x1d8], al
mov dword [esp + 0x1d9], eax
mov dword [esp + 0x1dd], eax
mov dword [esp + 0x1e1], eax
mov dword [esp + 0x1e5], eax
mov dword [esp + 0x1e9], eax
mov dword [esp + 0x1ed], eax
mov dword [esp + 0x1f1], eax
mov word [esp + 0x1f5], ax
mov byte [esp + 0x1f7], al
lea eax, [esp + 0x218]
push eax
push 0x40b6d6
push str.JoinServerODBC
push str.JoinServerInfo
call edi
push str..JoinServer.ini
push 0x20
lea ecx, [esp + 0x1f8]
push ecx
push 0x40b6d6
push str.JoinServerUSER
push str.JoinServerInfo
call edi
push str..JoinServer.ini
push 0x20
lea edx, [esp + 0x1d8]
push edx
push 0x40b6d6
push str.JoinServerPASS
push str.JoinServerInfo
call edi
push str..JoinServer.ini
push 0xdaa2
push str.JoinServerPort
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x10
lea ecx, [esp + 0x1c8]
push ecx
movzx eax, ax
push str.127.0.0.1
mov dword [esp + 0x20], eax
xor eax, eax
push str.ConnectServerAddress
push str.JoinServerInfo
mov byte [esp + 0x1d8], 0
mov dword [esp + 0x1d9], eax
mov dword [esp + 0x1dd], eax
mov dword [esp + 0x1e1], eax
mov word [esp + 0x1e5], ax
mov byte [esp + 0x1e7], al
call edi
push str..JoinServer.ini
push 0xd905
push str.ConnectServerPort
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0
push str.CaseSensitive
push str.JoinServerInfo
movzx edi, ax
call esi
push str..JoinServer.ini
push 0
push str.MD5Encryption
push str.JoinServerInfo
mov dword [0x412b6c], eax
call esi
mov dword [0x412b68], eax
lea edx, [esp + 0x1d0]
push edx
lea eax, [esp + 0x1f4]
push eax
lea eax, [esp + 0x218]
mov ecx, 0x412c98
call fcn.004068b0
test al, al
jne 0x403d5e
push str.Could_not_connect_to_database
push 1
call fcn.00408d60
add esp, 8
jmp 0x403dd7
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, 0x4dc4a8
call fcn.00407ab0
test al, al
jne 0x403d7d
mov esi, 0x412c98
call fcn.00406940
jmp 0x403dd7
push edi
lea eax, [esp + 0x1c4]
call fcn.00408a90
test al, al
jne 0x403da4
mov esi, 0x4dc4a8
call fcn.00407b40
mov esi, 0x412c98
call fcn.00406940
jmp 0x403dd7
call fcn.00402ad0
mov edx, dword [0x412b74]
push 0
push 0x3e8
push 0x64
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x403dd7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
mov eax, dword [0x412b74]
push 0
push 0x7d0
push 0x65
push eax
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 ecx, [esp + 0x20]
push ecx
mov esi, eax
call edi
test eax, eax
je 0x403e4c
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x403e3b
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x403e14
mov ecx, dword [0x412c48]
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x403e6b
mov ecx, dword [esp + 0x334]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040908b
mov esp, ebp
pop ebp
ret 0x10