Function at 0x405120
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0x5e0
lea eax, [esp + 0x13c]
push eax
call fcn.004040d0
lea ecx, [esp + 0x580]
push ecx
mov dword [esp + 0x20], 0x40e528
mov dword [esp + 0x24], 0x40e458
mov dword [esp + 0x28], 0x40e408
mov dword [esp + 0x2c], 0x40e3b8
mov dword [esp + 0x30], 0x40e368
mov dword [esp + 0x34], 0x40e318
mov dword [esp + 0x38], 0x40e2c8
mov dword [esp + 0x3c], 0x40e278
mov dword [esp + 0x40], 0x40e228
mov dword [esp + 0x44], 0x40e1d8
mov dword [esp + 0x48], 0x40e188
mov dword [esp + 0x4c], 0x40e138
mov dword [esp + 0x50], 0x40e0e8
mov dword [esp + 0x54], 0x40e098
mov dword [esp + 0x58], 0x40e048
mov dword [esp + 0x5c], 0x40dff8
mov dword [esp + 0x60], 0x40dfa8
mov dword [esp + 0x64], 0x40df58
mov dword [esp + 0x68], 0x40df08
mov dword [esp + 0x6c], 0x40deb8
mov dword [esp + 0x70], 0x40de68
mov dword [esp + 0x74], 0x40de18
mov dword [esp + 0x78], 0x40ddc8
mov dword [esp + 0x7c], 0x40dd78
mov dword [esp + 0x80], 0x40dd28
mov dword [esp + 0x84], 0x40dcd8
mov dword [esp + 0x88], 0x40dc88
mov dword [esp + 0x8c], 0x40dc38
mov dword [esp + 0x90], 0x40dbe8
mov dword [esp + 0x94], 0x40db98
mov dword [esp + 0x98], 0x40db48
mov dword [esp + 0x9c], 0x40daf8
mov dword [esp + 0xa0], 0x40daa8
mov dword [esp + 0xa4], 0x40da58
mov dword [esp + 0xa8], 0x40da08
mov dword [esp + 0xac], 0x40d9b8
mov dword [esp + 0xb0], 0x40d968
mov dword [esp + 0xb4], 0x40d918
mov dword [esp + 0xb8], 0x40d8c8
mov dword [esp + 0xbc], 0x40d878
mov dword [esp + 0xc0], 0x40d828
mov dword [esp + 0xc4], 0x40d7d8
mov dword [esp + 0xc8], 0x40d788
mov dword [esp + 0xcc], 0x40d738
mov dword [esp + 0xd0], 0x40d6e8
mov dword [esp + 0xd4], 0x40d698
mov dword [esp + 0xd8], 0x40d648
mov dword [esp + 0xdc], 0x40d5f8
mov dword [esp + 0xe0], 0x40d5a8
mov dword [esp + 0xe4], 0x40d558
mov dword [esp + 0xe8], 0x40d508
mov dword [esp + 0xec], 0x40d4b8
mov dword [esp + 0xf0], 0x40d468
mov dword [esp + 0xf4], 0x40d418
mov dword [esp + 0xf8], 0x40d3c8
mov dword [esp + 0xfc], 0x40d378
mov dword [esp + 0x100], 0x40d328
mov dword [esp + 0x104], 0x40d2d8
mov dword [esp + 0x108], 0x40d288
mov dword [esp + 0x10c], 0x40d238
mov dword [esp + 0x110], 0x40d1e8
mov dword [esp + 0x114], 0x40d198
mov dword [esp + 0x118], 0x40d148
mov dword [esp + 0x11c], 0x40d0f8
mov dword [esp + 0x120], 0x40d0a8
mov dword [esp + 0x124], 0x40d058
mov dword [esp + 0x128], 0x40d008
mov dword [esp + 0x12c], 0x40cfb8
mov dword [esp + 0x130], 0x40cf68
mov dword [esp + 0x134], 0x40cf18
mov dword [esp + 0x138], 0x40cefc
mov dword [esp + 0x13c], 0x40cec8
mov dword [esp + 0x140], 0x40cebc
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
push 0x40c401
mov edx, dword [esp + 0x5f0]
push edx
push 0x40ceb4
call fcn.00402080
lea eax, [esp + 0x590]
mov dword [esp + 0x20], eax
mov eax, dword [0x4104fc]
add esp, 0x14
test eax, eax
lea ecx, [esp + 0x13c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x40ce90
jne 0x40546f
mov dword [esp + 0x10], 0x40ce78
push esi
push edi
lea edx, [esp + 0x184]
push edx
push 0x40c401
push 0x40c401
push 0x40c401
call fcn.00402080
add esp, 0x10
xor edi, edi
mov cl, byte [esp + 0x184]
mov edx, dword [esp + edi*4 + 0x14]
xor eax, eax
test cl, cl
mov esi, 0x40cdc0
je 0x4054c3
jmp 0x4054b0
mov byte [esp + eax + 0x184], cl
mov cl, byte [esp + eax + 0x185]
inc eax
test cl, cl
jne 0x4054b0
mov cl, byte [edx]
test cl, cl
je 0x4054df
lea esp, [esp]
inc edx
mov byte [esp + eax + 0x184], cl
mov cl, byte [edx]
inc eax
test cl, cl
jne 0x4054d0
mov cl, 0xd
inc esi
mov byte [esp + eax + 0x184], cl
mov cl, byte [esi]
inc eax
test cl, cl
jne 0x4054e1
inc edi
cmp edi, 4
mov byte [esp + eax + 0x184], cl
jl 0x405492
mov eax, dword [0x412c3c]
test eax, eax
jne 0x40554c
push 0x12c
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0x184]
push 0
push eax
call fcn.004086d0
mov edx, dword [0x411e94]
add esp, 4
push eax
lea ecx, [esp + 0x18c]
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x40554c
call sub.WSOCK32.dll_WSACleanup
mov dword [0x412c3c], 1
mov eax, dword [0x4104fc]
test eax, eax
je 0x405564
push 0x40ce20
lea eax, [esp + 0x188]
push eax
jmp 0x405571
push 0x40cdc8
lea ecx, [esp + 0x188]
push ecx
call fcn.00408760
mov eax, dword [0x412c3c]
add esp, 8
test eax, eax
jne 0x4055c8
push 0x12c
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [esp + 0x184]
push 0
push edx
call fcn.004086d0
mov ecx, dword [0x411e94]
add esp, 4
push eax
lea eax, [esp + 0x18c]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4055c8
call sub.WSOCK32.dll_WSACleanup
mov dword [0x412c3c], 1
mov eax, dword [0x412c3c]
test eax, eax
mov byte [esp + 0x184], 0
jne 0x405729
lea edx, [esp + 0x24]
push ebx
mov dword [esp + 0x14], edx
push ebp
jmp 0x4055f0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405727
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
push 0x40cebc
mov esi, ebx
call fcn.004086d0
mov edi, eax
add esp, 4
test edi, edi
jle 0x405640
mov al, byte [esi]
xor ebp, ebp
test al, al
je 0x405640
nop
push edi
push 0x40cebc
push esi
inc ebp
call fcn.0040848e
add esp, 0xc
test eax, eax
je 0x405732
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x405620
mov cl, byte [esp + 0x18c]
xor eax, eax
test cl, cl
mov esi, 0x40cdc0
mov edx, ebx
je 0x405673
jmp 0x405660
mov byte [esp + eax + 0x18c], cl
mov cl, byte [esp + eax + 0x18d]
inc eax
test cl, cl
jne 0x405660
mov cl, byte [edx]
test cl, cl
je 0x40568f
lea esp, [esp]
inc edx
mov byte [esp + eax + 0x18c], cl
mov cl, byte [edx]
inc eax
test cl, cl
jne 0x405680
mov cl, 0xd
inc esi
mov byte [esp + eax + 0x18c], cl
mov cl, byte [esi]
inc eax
test cl, cl
jne 0x405691
mov byte [esp + eax + 0x18c], cl
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 5
je 0x4056ba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40570f
push 0x12c
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [esp + 0x18c]
push 0
push ecx
call fcn.004086d0
add esp, 4
push eax
mov eax, dword [0x411e94]
lea edx, [esp + 0x194]
push edx
push eax
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4056ff
call sub.WSOCK32.dll_WSACleanup
mov dword [0x412c3c], 1
mov byte [esp + 0x18c], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [0x412c3c]
add ecx, 4
test eax, eax
mov dword [esp + 0x18], ecx
je 0x4055f0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x5e0
ret
test ebp, ebp
jle 0x405640
mov dword [esp + 0x14], 1
jmp 0x4056ab