Function at 0x4043e0
Capabilities:
Connect socket
Delete file
Print debug messages
Resolve dns
Resolve function by parsing pe exports
Set socket configuration
Write file on windows

Disassembly:
sub esp, 0x194
mov eax, dword [0x418060]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
mov ebx, 1
push ebx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40443c
push 4
lea eax, [esp + 0x14]
push eax
push ebx
push 6
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x404443
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.HHHHHHHHHH_1._STUpdate___.
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
jmp 0x404894
call fcn.00404390
push 0x4201fc
test eax, eax
je 0x4044b3
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebp
jne 0x404476
push str.HHHHHHHHHH_2._STUpdate___.
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x404894
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
movsx ecx, word [edi + 0xa]
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040cb30
movzx eax, word [0x4201c8]
mov dx, word [edi + 8]
add esp, 0xc
mov word [esp + 0x40], dx
push eax
jmp 0x4044ea
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
call edi
xor eax, eax
push 0x4201fc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call edi
movzx edx, word [0x4201c8]
mov ecx, 2
mov dword [esp + 0x44], eax
mov word [esp + 0x40], cx
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x42], ax
push 0x10
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404521
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.HHHHHHHHHH_3._STUpdate___.
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
jmp 0x404894
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov al, byte [0x42021c]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], al
mov dword [esp + 0x3c], ebp
cmp al, 0x18
jne 0x4045a0
mov byte [esp + 0x19], 0x12
mov dword [esp + 0x3c], ebx
push str.UPDATE
lea ecx, [esp + 0x1e]
push 0x20
push ecx
call fcn.004057d3
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x60]
call fcn.00401170
push esi
mov edi, 0x28
lea ebx, [esp + 0x64]
call fcn.004048b0
add esp, 0x14
test eax, eax
je 0x404468
push str.UPDATE
lea eax, [esp + 0x7c]
push 0x20
push eax
call fcn.004057d3
push esi
mov edi, 0x20
lea ebx, [esp + 0x88]
call fcn.004048b0
add esp, 0x10
test eax, eax
jne 0x40461c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.HHHHHHHHHH_4._STUpdate___.
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
jmp 0x404894
xor eax, eax
push 0x28
push esi
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00404900
add esp, 8
test eax, eax
jne 0x404672
push str.HHHHHHHHHH_4_1._STUpdate___.
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x404894
mov ebx, 1
cmp byte [esp + 0x18], bl
jne 0x404695
cmp dword [esp + 0x3c], 0x2bc
ja 0x4046b7
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.HHHHHHHHHH_5._STUpdate___.
jmp 0x4046a1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.HHHHHHHHHH_6._STUpdate___.
mov esi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call esi
push str.HHHHHHHHHH_7._STUpdate___.
call esi
xor eax, eax
jmp 0x404894
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov al, byte [0x42021c]
mov dword [esp + 0x74], ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov byte [esp + 0x50], 0x40
mov byte [esp + 0x51], al
cmp al, 0x18
jne 0x40470d
push str.HHHHHHHHHH_7_1._KHWHO_INVITEE___.
call ebp
mov byte [esp + 0x51], 0x12
mov dword [esp + 0x74], ebx
push esi
mov edi, 0x28
lea ebx, [esp + 0x54]
call fcn.004048b0
add esp, 4
test eax, eax
jne 0x404731
push str.HHHHHHHHHH_8._STUpdate___.
call ebp
xor eax, eax
jmp 0x404894
xor eax, eax
push 0x28
push esi
lea ebx, [esp + 0x20]
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00404900
add esp, 8
test eax, eax
jne 0x40477e
push str.HHHHHHHHHH_9._STUpdate___.
call ebp
xor eax, eax
jmp 0x404894
mov eax, dword [esp + 0x3c]
lea ecx, [eax - 1]
cmp ecx, 0x2edffe
ja 0x40487e
push eax
call fcn.0040576e
mov edx, dword [esp + 0x40]
push edx
mov ebx, eax
push esi
call fcn.00404900
add esp, 0xc
test eax, eax
je 0x404864
mov al, byte [0x42021c]
cmp al, 0x11
jne 0x4047cc
push str.client.exe
push 0xff
lea eax, [esp + 0xa0]
push eax
jmp 0x4047fa
cmp al, 0x12
jne 0x4047e4
push str.center.exe
push 0xff
lea ecx, [esp + 0xa0]
push ecx
jmp 0x4047fa
cmp al, 0x18
jne 0x404802
push str.invite.exe
push 0xff
lea edx, [esp + 0xa0]
push edx
call fcn.004057d3
add esp, 0xc
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push edi
push 0x82
push 2
push edi
push 3
push 0xc0000000
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40483f
mov dword [esp + 0x10], 0
jmp 0x40486f
mov eax, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40486f
push str.HHHHHHHHHH_10._STUpdate___.
call ebp
mov dword [esp + 0x10], edi
test ebx, ebx
je 0x404889
push ebx
call fcn.00404ab1
add esp, 4
jmp 0x404889
push str.HHHHHHHHHH_11._STUpdate___.
call ebp
mov dword [esp + 0x10], edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404aa2
add esp, 0x194
ret