Function at 0x4058a0
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 [0x43b040]
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 0x4081a0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x508ef8
push 0x67
push edi
mov dword [0x508f5c], eax
call esi
push 0x64
push 0x508e90
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], 0x405fd0
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], 0x508e90
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 0x508ef8
push 0x508e90
push 0
mov dword [0x508ef4], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x508e8c], eax
test eax, eax
jne 0x4059ee
pop edi
pop esi
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.0040c2a3
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x508e8c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..JoinServer.ini
push 0x64
push 0x508e28
push 0x435e9a
push str.UserEmail
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x508df4
push str.MEMB_INFO
push str.VipTable
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x508dc0
push 0x437090
push str.VipColumn
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x508d8c
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 [0x508e8c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x508e8c]
push 0x437628
push ecx
mov dword [0x504ef4], eax
call fcn.00407880
push str.LOG_ACCOUNT
push ecx
call fcn.00407880
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x405f11
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 [0x508d88], eax
call esi
push str..JoinServer.ini
push 0
push str.RegexFixAccount
push str.JoinServerInfo
mov dword [0x508d84], eax
call esi
push ecx
mov ecx, 0x43bb5c
mov dword [0x508d80], eax
call fcn.00404ea0
push dword [0x508d80]
push str.Regex_State:__d
push 1
call fcn.0040a1b0
mov eax, dword [0x43bb64]
add esp, 0xc
sub eax, dword [0x43bb60]
sar eax, 5
push eax
push str.Badsyntax_Lenght:__d
push 1
call fcn.0040a1b0
add esp, 0xc
lea eax, [esp + 0x200]
push eax
push 0x20
push 0x43bfb0
call fcn.00410ff3
add esp, 0xc
lea eax, [esp + 0x220]
push eax
push 0x20
push 0x43bfd0
call fcn.00410ff3
add esp, 0xc
lea eax, [esp + 0x1c0]
push eax
push 0x20
push 0x43bff0
call fcn.00410ff3
mov esi, dword [sym.imp.ODBC32.dll_SQLAllocHandle]
add esp, 0xc
push 0x43bfa8
push dword [0x43bfa4]
push 2
call esi
test ax, 0xfffe
jne 0x405f00
push 0xfffffffffffffffd
push 0x43bff0
push 0xfffffffffffffffd
push 0x43bfd0
push 0xfffffffffffffffd
push 0x43bfb0
push dword [0x43bfa8]
call dword [sym.imp.ODBC32.dll_SQLConnect]
test ax, 0xfffe
jne 0x405f00
push 0x43bfac
push dword [0x43bfa8]
push 3
call esi
test ax, 0xfffe
jne 0x405f00
push dword [esp + 0x10]
call fcn.00408fd0
test al, al
jne 0x405d7f
mov eax, dword [0x43bfac]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x405d46
push eax
push 3
call esi
mov dword [0x43bfac], 0
mov eax, dword [0x43bfa8]
test eax, eax
je 0x405d5e
push eax
push 2
call esi
mov dword [0x43bfa8], 0
mov eax, dword [0x43bfa4]
test eax, eax
je 0x405f27
push eax
push 1
call esi
mov dword [0x43bfa4], 0
jmp 0x405f27
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x5059f4], eax
cmp eax, 0xffffffff
jne 0x405da3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__WSASocket___failed_with_error:__d
jmp 0x405e02
mov eax, 2
mov word [0x5059f8], ax
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [esp + 0xc]
mov dword [0x5059fc], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x5059fc], 0xffffffff
mov word [0x5059fa], ax
jne 0x405ec4
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x405ead
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__gethostbyname___failed_with_error:__d
push 1
call fcn.0040a1b0
mov eax, dword [0x505a08]
add esp, 0xc
test eax, eax
je 0x405e34
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x505a08]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x505a08], 0
mov eax, dword [0x5059f4]
cmp eax, 0xffffffff
je 0x405e4f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x5059f4], 0xffffffff
mov ecx, 0x505960
call fcn.00409290
mov eax, dword [0x43bfac]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x405e77
push eax
push 3
call esi
mov dword [0x43bfac], 0
mov eax, dword [0x43bfa8]
test eax, eax
je 0x405e8f
push eax
push 2
call esi
mov dword [0x43bfa8], 0
mov eax, dword [0x43bfa4]
test eax, eax
je 0x405f27
push eax
push 1
call esi
mov dword [0x43bfa4], 0
jmp 0x405f27
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
push 0x5059fc
call fcn.0040dbb0
add esp, 0xc
push 0x1000
push 0
push 0x506a10
call fcn.0040e150
add esp, 8
mov dword [0x507a10], 0
call fcn.004049d0
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x3e8
push 0x64
push dword [0x508e8c]
call esi
jmp 0x405f2d
push str.Could_not_connect_to_database
push 1
call fcn.0040a1b0
add esp, 8
jmp 0x405f27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.0040a1b0
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SetTimer]
call fcn.00408be0
push 0
push 0x7d0
push 0x65
push dword [0x508e8c]
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 0x405faa
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 0x405f99
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 0x405f70
push dword [0x508f5c]
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.0040c2a3
mov esp, ebp
pop ebp
ret 0x10