Function at 0x403750
Capabilities:
Create udp socket
Initialize winsock library
Read .ini file
Resolve dns
Terminate thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov dword [ebp - 0x324], eax
jmp 0x403793
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x406240
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov edi, dword [ebp - 0x324]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4db5c8
push 0x67
push edi
mov dword [0x4db5c4], eax
call esi
push 0x64
push 0x4db560
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push edi
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 0x403df0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x6c
push dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x1c], 0x6d
mov dword [ebp - 0x18], 0x4db560
call esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push edi
push 0
push 0
push 0x258
push 0x258
push 0
push SQLBindCol
push 0xcf0000
push 0x4db5c8
push 0x4db560
push 0
mov dword [0x4db55c], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4db558], eax
test eax, eax
je 0x403895
push dword [ebx + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4db558]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
test eax, eax
je 0x403dda
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..JoinServer.ini
push 0x20
push 0x4db538
push 0x40b440
push str.CustomerName
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x24
push 0x4db514
push 0x40b440
push str.CustomerHardwareId
push str.JoinServerInfo
call esi
push 0
push 0
push 0
push str.LOUIS_MS_EMULATOR
push 0x40b5f0
lea eax, [ebp - 0x190]
push str.__s___s_JoinServer__QueueSize_:__d___AccountCount_:__d__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x190]
push eax
push dword [0x4db558]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x4db558]
mov ecx, 0x4d8520
call fcn.00406cd0
lea eax, [ebp - 0x320]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x403cff
push str..JoinServer.ini
push 0x20
lea eax, [ebp - 0x70]
xorps xmm0, xmm0
push eax
push 0x40b440
push str.JoinServerODBC
push str.JoinServerInfo
movaps xmmword [ebp - 0x70], xmm0
movaps xmmword [ebp - 0x60], xmm0
movaps xmmword [ebp - 0x90], xmm0
movaps xmmword [ebp - 0x80], xmm0
movaps xmmword [ebp - 0x30], xmm0
movaps xmmword [ebp - 0x20], xmm0
call esi
push str..JoinServer.ini
push 0x20
lea eax, [ebp - 0x90]
push eax
push 0x40b440
push str.JoinServerUSER
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x20
lea eax, [ebp - 0x30]
push eax
push 0x40b440
push str.JoinServerPASS
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0xb
push 0x4db500
push str.XwefDastoD
push str.GlobalPassword
push str.JoinServerInfo
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..JoinServer.ini
push 0xdaa2
push str.JoinServerPort
push str.JoinServerInfo
call esi
push str..JoinServer.ini
movzx eax, ax
xorps xmm0, xmm0
push 0x10
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x50]
push eax
push str.127.0.0.1
push str.ConnectServerAddress
push str.JoinServerInfo
movaps xmmword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..JoinServer.ini
push 0xd905
push str.ConnectServerPort
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0
push str.CaseSensitive
movzx eax, ax
push str.JoinServerInfo
mov dword [ebp - 0x328], eax
call esi
push str..JoinServer.ini
push 0
push str.MD5Encryption
push str.JoinServerInfo
mov dword [0x4db510], eax
call esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov dword [0x4db50c], eax
lea eax, [ebp - 0x70]
push eax
push 0x20
push 0x40f5e0
call esi
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0x20
push 0x40f600
call esi
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push 0x20
push 0x40f620
call esi
mov esi, dword [sym.imp.ODBC32.dll_SQLAllocHandle]
add esp, 0xc
push 0x40f5d8
push dword [0x40f5d4]
push 2
call esi
test ax, 0xfffe
jne 0x403cee
push 0xfffffffffffffffd
push 0x40f620
push 0xfffffffffffffffd
push 0x40f600
push 0xfffffffffffffffd
push 0x40f5e0
push dword [0x40f5d8]
call dword [sym.imp.ODBC32.dll_SQLConnect]
test ax, 0xfffe
jne 0x403cee
push 0x40f5dc
push dword [0x40f5d8]
push 3
call esi
test ax, 0xfffe
jne 0x403cee
push dword [ebp - 0x324]
mov ecx, 0x4d8ef0
call fcn.004072a0
test al, al
jne 0x403b73
mov eax, dword [0x40f5dc]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x403b3a
push eax
push 3
call esi
mov dword [0x40f5dc], 0
mov eax, dword [0x40f5d8]
test eax, eax
je 0x403b52
push eax
push 2
call esi
mov dword [0x40f5d8], 0
mov eax, dword [0x40f5d4]
test eax, eax
je 0x403d15
push eax
push 1
call esi
mov dword [0x40f5d4], 0
jmp 0x403d15
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x4d8f84], eax
cmp eax, 0xffffffff
jne 0x403b97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__WSASocket___failed_with_error:__d
jmp 0x403bf0
mov eax, 2
mov word [0x4d8f88], ax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp - 0x328]
mov dword [0x4d8f8c], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x4d8f8c], 0xffffffff
mov word [0x4d8f8a], ax
jne 0x403cb2
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x403c9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__gethostbyname___failed_with_error:__d
push 1
call fcn.00408470
mov eax, dword [0x4d8f98]
add esp, 0xc
test eax, eax
je 0x403c22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x4d8f98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4d8f98], 0
mov eax, dword [0x4d8f84]
cmp eax, 0xffffffff
je 0x403c3d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x4d8f84], 0xffffffff
mov ecx, 0x4d8ef0
call fcn.00407570
mov eax, dword [0x40f5dc]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x403c65
push eax
push 3
call esi
mov dword [0x40f5dc], 0
mov eax, dword [0x40f5d8]
test eax, eax
je 0x403c7d
push eax
push 2
call esi
mov dword [0x40f5d8], 0
mov eax, dword [0x40f5d4]
test eax, eax
je 0x403d15
push eax
push 1
call esi
mov dword [0x40f5d4], 0
jmp 0x403d15
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
push 0x4d8f8c
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x1000
push 0
push 0x4d9fa0
call sub.VCRUNTIME140.dll_memset
add esp, 8
mov dword [0x4dafa0], 0
call fcn.004031d0
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x3e8
push 0x64
push dword [0x4db558]
call esi
jmp 0x403d1b
push str.Could_not_connect_to_database
push 1
call fcn.00408470
add esp, 8
jmp 0x403d15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.00408470
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SetTimer]
call fcn.00406d30
call fcn.00406e90
push 0
push 0x7d0
push 0x65
push dword [0x4db558]
call esi
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x344]
push 0
push eax
call esi
test eax, eax
je 0x403db6
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x344]
push eax
push dword [ebp - 0x328]
push dword [ebp - 0x344]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x403da3
lea eax, [ebp - 0x344]
push eax
call edi
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x344]
push eax
call esi
test eax, eax
jne 0x403d70
push dword [0x4db5c4]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x403dd4
mov eax, dword [ebp - 0x33c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004085b7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10