Function at 0x406010
Capabilities:
Hide graphical window
Initialize winsock library
Read .ini file
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x32c
mov eax, dword [0x4295f0]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4080b0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x42e110
push 0x67
push ebx
mov dword [0x42e178], eax
call esi
push 0x64
push 0x42e0a8
push 0x6d
push ebx
call esi
mov eax, ebx
call fcn.00406560
push 0
push ebx
push 0
push 0
push 0x258
push 0x258
push 0
push bind
push 0xcf0000
push 0x42e110
push 0x42e0a8
push 0
mov dword [0x42e10c], ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x42e0a4], eax
test eax, eax
je 0x40642c
mov ecx, dword [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x42e0a4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..JoinServer.ini
push 0x64
push 0x42e040
push 0x4251ff
push str.UserEmail
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x42e00c
push str.MEMB_INFO
push str.VipTable
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x42dfd8
push 0x4254a4
push str.VipColumn
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x32
push 0x42dfa4
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 + 0x240]
push str.__s__JoinServer__AccountCount_:__d__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x42e0a4]
add esp, 0x18
lea ecx, [esp + 0x230]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x42e0a4]
mov ecx, 0x4259fc
mov dword [0x4f711c], eax
call fcn.00407910
mov ecx, str.LOG_ACCOUNT
call fcn.00407910
lea ecx, [esp + 0x30]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4064a2
push str..JoinServer.ini
push 0x20
lea edx, [esp + 0x218]
push edx
push 0x4251ff
push str.JoinServerODBC
push str.JoinServerInfo
mov byte [esp + 0x228], al
mov dword [esp + 0x229], eax
mov dword [esp + 0x22d], eax
mov dword [esp + 0x231], eax
mov dword [esp + 0x235], eax
mov dword [esp + 0x239], eax
mov dword [esp + 0x23d], eax
mov dword [esp + 0x241], eax
mov word [esp + 0x245], ax
mov byte [esp + 0x247], al
mov byte [esp + 0x208], al
mov dword [esp + 0x209], eax
mov dword [esp + 0x20d], eax
mov dword [esp + 0x211], eax
mov dword [esp + 0x215], eax
mov dword [esp + 0x219], eax
mov dword [esp + 0x21d], eax
mov dword [esp + 0x221], eax
mov word [esp + 0x225], ax
mov byte [esp + 0x227], al
mov byte [esp + 0x1e8], al
mov dword [esp + 0x1e9], eax
mov dword [esp + 0x1ed], eax
mov dword [esp + 0x1f1], eax
mov dword [esp + 0x1f5], eax
mov dword [esp + 0x1f9], eax
mov dword [esp + 0x1fd], eax
mov dword [esp + 0x201], eax
mov word [esp + 0x205], ax
mov byte [esp + 0x207], al
call esi
push str..JoinServer.ini
push 0x20
lea eax, [esp + 0x1f8]
push eax
push 0x4251ff
push str.JoinServerUSER
push str.JoinServerInfo
call esi
push str..JoinServer.ini
push 0x20
lea ecx, [esp + 0x1d8]
push ecx
push 0x4251ff
push str.JoinServerPASS
push str.JoinServerInfo
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..JoinServer.ini
push 0xdaa2
push str.JoinServerPort
push str.JoinServerInfo
call edi
movzx edx, ax
xor eax, eax
push str..JoinServer.ini
push 0x10
mov dword [esp + 0x1c9], eax
mov dword [esp + 0x1cd], eax
mov dword [esp + 0x1d1], eax
mov word [esp + 0x1d5], ax
mov byte [esp + 0x1d7], al
lea eax, [esp + 0x1c8]
push eax
push str.127.0.0.1
push str.ConnectServerAddress
push str.JoinServerInfo
mov dword [esp + 0x28], edx
mov byte [esp + 0x1d8], 0
call esi
push str..JoinServer.ini
push 0xd905
push str.ConnectServerPort
push str.JoinServerInfo
call edi
push str..JoinServer.ini
push 0
push str.CaseSensitive
push str.JoinServerInfo
movzx esi, ax
call edi
push str..JoinServer.ini
push 0
push str.MD5Encryption
push str.JoinServerInfo
mov dword [0x42dfa0], eax
call edi
push str..JoinServer.ini
push 0
push str.RegexFixAccount
push str.JoinServerInfo
mov dword [0x42df9c], eax
call edi
push 0x42aa30
mov dword [0x42df98], eax
call fcn.00405530
mov ecx, dword [0x42df98]
push ecx
push str.Regex_State:__d
push 1
call fcn.0040a7b0
mov edx, dword [0x42aa38]
sub edx, dword [0x42aa34]
add esp, 0xc
sar edx, 5
push edx
push str.Badsyntax_Lenght:__d
push 1
call fcn.0040a7b0
add esp, 0xc
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x1f4]
push ecx
lea eax, [esp + 0x218]
mov ecx, 0x42e1c8
call fcn.004082c0
test al, al
jne 0x406445
push str.Could_not_connect_to_database
push 1
call fcn.0040a7b0
add esp, 8
jmp 0x4064b8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0040c454
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x10]
call fcn.00409550
test al, al
jne 0x40645e
mov esi, 0x42e1c8
call fcn.00408350
jmp 0x4064b8
push esi
lea eax, [esp + 0x1c4]
call fcn.0040a500
test al, al
jne 0x406485
mov esi, 0x502a88
call fcn.004095b0
mov esi, 0x42e1c8
call fcn.00408350
jmp 0x4064b8
call fcn.00404600
mov edx, dword [0x42e0a4]
push 0
push 0x3e8
push 0x64
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4064b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
call fcn.00408df0
mov eax, dword [0x42e0a4]
push 0
push 0x7d0
push 0x65
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0x6d
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 0x406538
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x406527
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 0x406500
mov ecx, dword [0x42e178]
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esp + 0x334]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c454
mov esp, ebp
pop ebp
ret 0x10