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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x348
mov eax, dword [0x43c040]
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 0x408080
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x509e60
push 0x67
push edi
mov dword [0x509ec4], eax
call esi
push 0x64
push 0x509df8
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], 0x406010
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], 0x509df8
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 closesocket
push 0xcf0000
push 0x509e60
push 0x509df8
push 0
mov dword [0x509e5c], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x509df4], eax
test eax, eax
jne 0x405a3e
pop edi
pop esi
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.0040c493
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x509df4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..JoinServer.ini
push 0x64
push 0x509d90
push 0x435e9a
push str.UserEmail
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x509d5c
push str.MEMB_INFO
push str.VipTable
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x509d28
push 0x437090
push str.VipColumn
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x509cf4
push str.memb___id
push str.VipWhere
push str.JoinServerInfo
call esi
push 0
push 0
push 0
push str.1.0.0.1
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 [0x509df4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x509df4]
mov ecx, 0x505ef0
call fcn.00408ac0
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x405f51
push str..JoinServer.ini
push 0x20
lea eax, [esp + 0x208]
xorps xmm0, xmm0
push eax
push 0x435e9a
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 0x435e9a
push str.JoinServerUSER
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x20
lea eax, [esp + 0x1c8]
push eax
push 0x435e9a
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 [0x509cf0], eax
call esi
push str..JoinServer.ini
push 0
push str.RegexFixAccount
push str.JoinServerInfo
mov dword [0x509cec], eax
call esi
push ecx
mov ecx, 0x43cb5c
mov dword [0x509ce8], eax
call fcn.00404f00
push dword [0x509ce8]
push str.Regex_State:__d
push 1
call fcn.0040a420
mov eax, dword [0x43cb64]
add esp, 0xc
sub eax, dword [0x43cb60]
sar eax, 5
push eax
push str.Badsyntax_Lenght:__d
push 1
call fcn.0040a420
add esp, 0xc
lea eax, [esp + 0x200]
push eax
push 0x20
push 0x43cfb0
call fcn.004111f3
add esp, 0xc
lea eax, [esp + 0x220]
push eax
push 0x20
push 0x43cfd0
call fcn.004111f3
add esp, 0xc
lea eax, [esp + 0x1c0]
push eax
push 0x20
push 0x43cff0
call fcn.004111f3
mov esi, dword [sym.imp.ODBC32.dll_SQLAllocHandle]
add esp, 0xc
push 0x43cfa8
push dword [0x43cfa4]
push 2
call esi
test ax, 0xfffe
jne 0x405f40
push 0xfffffffffffffffd
push 0x43cff0
push 0xfffffffffffffffd
push 0x43cfd0
push 0xfffffffffffffffd
push 0x43cfb0
push dword [0x43cfa8]
call dword [sym.imp.ODBC32.dll_SQLConnect]
test ax, 0xfffe
jne 0x405f40
push 0x43cfac
push dword [0x43cfa8]
push 3
call esi
test ax, 0xfffe
jne 0x405f40
push dword [esp + 0x10]
call fcn.00409240
test al, al
jne 0x405dbf
mov eax, dword [0x43cfac]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x405d86
push eax
push 3
call esi
mov dword [0x43cfac], 0
mov eax, dword [0x43cfa8]
test eax, eax
je 0x405d9e
push eax
push 2
call esi
mov dword [0x43cfa8], 0
mov eax, dword [0x43cfa4]
test eax, eax
je 0x405f67
push eax
push 1
call esi
mov dword [0x43cfa4], 0
jmp 0x405f67
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x50695c], eax
cmp eax, 0xffffffff
jne 0x405de3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__WSASocket___failed_with_error:__d
jmp 0x405e42
mov eax, 2
mov word [0x506960], ax
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [esp + 0xc]
mov dword [0x506964], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x506964], 0xffffffff
mov word [0x506962], ax
jne 0x405f04
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x405eed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__gethostbyname___failed_with_error:__d
push 1
call fcn.0040a420
mov eax, dword [0x506970]
add esp, 0xc
test eax, eax
je 0x405e74
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x506970]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x506970], 0
mov eax, dword [0x50695c]
cmp eax, 0xffffffff
je 0x405e8f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x50695c], 0xffffffff
mov ecx, 0x5068c8
call fcn.00409500
mov eax, dword [0x43cfac]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x405eb7
push eax
push 3
call esi
mov dword [0x43cfac], 0
mov eax, dword [0x43cfa8]
test eax, eax
je 0x405ecf
push eax
push 2
call esi
mov dword [0x43cfa8], 0
mov eax, dword [0x43cfa4]
test eax, eax
je 0x405f67
push eax
push 1
call esi
mov dword [0x43cfa4], 0
jmp 0x405f67
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
push 0x506964
call fcn.0040ddb0
add esp, 0xc
push 0x1000
push 0
push 0x507978
call fcn.0040e350
add esp, 8
mov dword [0x508978], 0
call fcn.00404a30
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x3e8
push 0x64
push dword [0x509df4]
call esi
jmp 0x405f6d
push str.Could_not_connect_to_database
push 1
call fcn.0040a420
add esp, 8
jmp 0x405f67
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.0040a420
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SetTimer]
call fcn.00408d90
push 0
push 0x7d0
push 0x65
push dword [0x509df4]
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 0x405fea
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [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 0x405fd9
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 0x405fb0
push dword [0x509ec4]
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.0040c493
mov esp, ebp
pop ebp
ret 0x10