Function at 0x404210
Capabilities:
Create udp socket
Hide graphical window
Initialize winsock library
Read .ini file
Resolve dns
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x348
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x344], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x406b30
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4dc6b0
push 0x67
push edi
mov dword [0x4dc714], eax
call esi
push 0x64
push 0x4dc648
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push edi
mov dword [esp + 0x1c8], 0x30
mov dword [esp + 0x1cc], 3
mov dword [esp + 0x1d0], 0x404940
mov dword [esp + 0x1d4], 0
mov dword [esp + 0x1d8], 0
mov dword [esp + 0x1dc], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x1e0], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x6c
push dword [esp + 0x1d8]
mov dword [esp + 0x1e4], eax
mov dword [esp + 0x1e8], 6
mov dword [esp + 0x1ec], 0x6d
mov dword [esp + 0x1f0], 0x4dc648
call esi
mov dword [esp + 0x1ec], eax
lea eax, [esp + 0x1c0]
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 0x4dc6b0
push 0x4dc648
push 0
mov dword [0x4dc6ac], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4dc644], eax
test eax, eax
jne 0x40435e
pop edi
pop esi
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.00408c87
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4dc644]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..JoinServer.ini
push 0x64
push 0x4dc5e0
push 0x40b3e3
push str.UserEmail
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x4dc5ac
push str.MEMB_INFO
push str.VipTable
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x4dc578
push 0x40c614
push str.VipColumn
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x4dc544
push str.memb___id
push str.VipWhere
push str.JoinServerInfo
call esi
push 0
push 0
push 0
push str.1.0.1.3
lea eax, [esp + 0x258]
push str.__s__JoinServer__AccountCount_:__d__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [esp + 0x248]
push eax
push dword [0x4dc644]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x4dc644]
push 0x40cb88
push ecx
mov dword [0x4d94a4], eax
call fcn.00406220
push str.LOG_ACCOUNT
push ecx
call fcn.00406220
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40487e
push str..JoinServer.ini
push 0x20
lea eax, [esp + 0x208]
xorps xmm0, xmm0
push eax
push 0x40b3e3
push str.JoinServerODBC
push str.JoinServerInfo
movaps xmmword [esp + 0x218], xmm0
movaps xmmword [esp + 0x228], xmm0
movaps xmmword [esp + 0x238], xmm0
movaps xmmword [esp + 0x248], xmm0
movaps xmmword [esp + 0x1d8], xmm0
movaps xmmword [esp + 0x1e8], xmm0
call esi
push str..JoinServer.ini
push 0x20
lea eax, [esp + 0x228]
push eax
push 0x40b3e3
push str.JoinServerUSER
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x20
lea eax, [esp + 0x1c8]
push eax
push 0x40b3e3
push str.JoinServerPASS
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 [esp + 0x18], eax
lea eax, [esp + 0x1f8]
push eax
push str.127.0.0.1
push str.ConnectServerAddress
push str.JoinServerInfo
movaps xmmword [esp + 0x208], 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 [esp + 0x1c], eax
call esi
push str..JoinServer.ini
push 0
push str.MD5Encryption
push str.JoinServerInfo
mov dword [0x4dc540], eax
call esi
push str..JoinServer.ini
push 0
push str.RegexFixAccount
push str.JoinServerInfo
mov dword [0x4dc53c], eax
call esi
push ecx
mov ecx, 0x41010c
mov dword [0x4dc538], eax
call fcn.00403750
push dword [0x4dc538]
push str.Regex_State:__d
push 1
call fcn.00408ac0
mov eax, dword [0x410114]
add esp, 0xc
sub eax, dword [0x410110]
sar eax, 5
push eax
push str.Badsyntax_Lenght:__d
push 1
call fcn.00408ac0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [esp + 0x20c]
add esp, 0xc
push eax
push 0x20
push 0x410560
call esi
add esp, 0xc
lea eax, [esp + 0x220]
push eax
push 0x20
push 0x410580
call esi
add esp, 0xc
lea eax, [esp + 0x1c0]
push eax
push 0x20
push 0x4105a0
call esi
mov esi, dword [sym.imp.ODBC32.dll_SQLAllocHandle]
add esp, 0xc
push 0x410558
push dword [0x410554]
push 2
call esi
test ax, 0xfffe
jne 0x40486d
push 0xfffffffffffffffd
push 0x4105a0
push 0xfffffffffffffffd
push 0x410580
push 0xfffffffffffffffd
push 0x410560
push dword [0x410558]
call dword [sym.imp.ODBC32.dll_SQLConnect]
test ax, 0xfffe
jne 0x40486d
push 0x41055c
push dword [0x410558]
push 3
call esi
test ax, 0xfffe
jne 0x40486d
push dword [esp + 0x10]
call fcn.00407910
test al, al
jne 0x4046ec
mov eax, dword [0x41055c]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x4046b3
push eax
push 3
call esi
mov dword [0x41055c], 0
mov eax, dword [0x410558]
test eax, eax
je 0x4046cb
push eax
push 2
call esi
mov dword [0x410558], 0
mov eax, dword [0x410554]
test eax, eax
je 0x404894
push eax
push 1
call esi
mov dword [0x410554], 0
jmp 0x404894
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x4d9fa4], eax
cmp eax, 0xffffffff
jne 0x404710
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__WSASocket___failed_with_error:__d
jmp 0x40476f
mov eax, 2
mov word [0x4d9fa8], ax
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [esp + 0xc]
mov dword [0x4d9fac], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x4d9fac], 0xffffffff
mov word [0x4d9faa], ax
jne 0x404831
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x40481a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__gethostbyname___failed_with_error:__d
push 1
call fcn.00408ac0
mov eax, dword [0x4d9fb8]
add esp, 0xc
test eax, eax
je 0x4047a1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x4d9fb8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4d9fb8], 0
mov eax, dword [0x4d9fa4]
cmp eax, 0xffffffff
je 0x4047bc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x4d9fa4], 0xffffffff
mov ecx, 0x4d9f10
call fcn.00407bd0
mov eax, dword [0x41055c]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x4047e4
push eax
push 3
call esi
mov dword [0x41055c], 0
mov eax, dword [0x410558]
test eax, eax
je 0x4047fc
push eax
push 2
call esi
mov dword [0x410558], 0
mov eax, dword [0x410554]
test eax, eax
je 0x404894
push eax
push 1
call esi
mov dword [0x410554], 0
jmp 0x404894
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
push 0x4d9fac
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x1000
push 0
push 0x4dafc0
call sub.VCRUNTIME140.dll_memset
add esp, 8
mov dword [0x4dbfc0], 0
call fcn.00403270
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x3e8
push 0x64
push dword [0x4dc644]
call esi
jmp 0x40489a
push str.Could_not_connect_to_database
push 1
call fcn.00408ac0
add esp, 8
jmp 0x404894
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.00408ac0
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SetTimer]
call fcn.00407520
push 0
push 0x7d0
push 0x65
push dword [0x4dc644]
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 [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40491a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop word [eax + eax]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x404909
lea eax, [esp + 0x14]
push eax
call edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x4048e0
push dword [0x4dc714]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esp + 0x34c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00408c87
mov esp, ebp
pop ebp
ret 0x10