Function at 0x401c70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x438866
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x640
mov dl, byte [0x4608d0]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x451]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x450], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [esp + 0x660]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x350]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
xor bl, bl
call fcn.004033c0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x450]
push ecx
push edx
mov ecx, esi
call fcn.00403210
lea ecx, [esp + 0x1c]
call fcn.00407ad0
mov eax, dword [0x458104]
mov ecx, dword [0x458100]
push eax
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x660], 0
call fcn.00407ba0
mov edx, dword [0x4608b4]
mov eax, dword [0x4608b0]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.00407b50
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x450]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.00407d00
mov al, byte [esp + 0x51]
test al, al
je 0x401e29
cmp al, 0xa
je 0x401e29
cmp al, 0x32
je 0x401e29
mov ecx, dword [esp + 0x53]
cmp al, 3
mov dword [esp + 0x10], ecx
jne 0x401e35
movsx eax, word [esp + 0x57]
mov ecx, eax
lea esi, [esp + 0x59]
mov edx, ecx
lea edi, [esp + 0x250]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ax, word [esp + eax + 0x59]
mov ecx, edx
and ecx, 3
mov word [esp + 0x14], ax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x51]
and eax, 0xff
cmp eax, 0x32
ja case.0x401ddf.11
xor ecx, ecx
mov cl, byte [eax + 0x402090]
jmp dword [ecx*4 + 0x402060]
cmp bl, 1
jne case.0x401ddf.11
mov edx, dword [0x45a268]
mov dword [esp + 0x14], edx
push 0
push str.MuhonSD
push 0x458318
mov ecx, ebp
mov byte [esp + 0x664], bl
call fcn.0042ecef
lea ecx, [esp + 0x14]
mov byte [esp + 0x658], 0
call fcn.0042cca2
jmp case.0x401ddf.11
mov edx, dword [esp + 0x53]
mov bl, byte [esp + 0x52]
mov dword [esp + 0x10], edx
cmp al, 0x64
jne 0x401dc5
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
lea eax, [esp + 0x354]
push 0
push eax
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
lea ecx, [esp + 0x354]
push 0
push ecx
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
push 0
push 0x4582e4
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
push 0
push 0x4582d4
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
push 0
push 0x458280
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
xor edx, edx
mov edi, eax
mov dword [esp + 0x34], edx
lea eax, [esp + 0x250]
mov dword [esp + 0x38], edx
push eax
mov dword [esp + 0x40], edx
mov word [esp + 0x38], 2
mov dword [esp + 0x44], edx
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
push ecx
call sub.WSOCK32.dll_htons
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov word [esp + 0x36], ax
or ebp, 0xffffffff
lea edx, [esp + 0x34]
push 0x10
push edx
push edi
call sub.WSOCK32.dll_connect
cmp eax, ebp
jne 0x401f51
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x401f19
push 0
push 0
push str.server_connect_fail.
call fcn.00433905
mov dword [esp + 0x658], ebp
jmp 0x402039
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x48]
push 0xc
push ecx
push edi
mov word [esp + 0x54], 0x3ef
mov word [esp + 0x56], 0xc
mov word [esp + 0x58], 0x3fe
mov dword [esp + 0x5a], eax
mov word [esp + 0x5e], 0x3ed
call sub.WSOCK32.dll_send
cmp eax, ebp
jne 0x401f94
mov dword [esp + 0x658], ebp
jmp 0x402039
push edi
call sub.WSOCK32.dll_closesocket
mov dword [esp + 0x658], ebp
jmp 0x402039
push 0
push 0
push 0x458240
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
push 0
push str.Guest
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
push 0
push 0x4581d8
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
push 0
push 0x4581a4
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
push 0
push 0
push 0x458188
call fcn.00433905
mov ecx, ebp
call fcn.004023e0
jmp 0x40202e
mov edx, dword [esp + 0x10]
mov ecx, ebp
mov dword [0x4608b8], edx
mov eax, dword [ebp]
call dword [eax + 0xc4]
mov dword [esp + 0x658], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00407b20
mov ecx, dword [esp + 0x650]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64c
ret 4