Function at 0x47ccbc
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
inc ecx
mov eax, 0x40000000
mov dword [esp + 0x18], ecx
push ebp
mov ebp, ecx
push esi
test eax, ebx
je 0x47cce6
xor ebx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], ebx
mov eax, ecx
jmp 0x47ccec
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x47ccfc
push 0xfffffffffffffffc
pop eax
jmp 0x47d25f
xor edx, edx
push edi
mov dword [esp + 0x30], edx
cmp dword [esi + 0x224], edx
je 0x47cf0f
test eax, eax
jne 0x47cd25
lea ecx, [esi + 0x20c]
call fcn.0044c7d2
mov edx, dword [esp + 0x30]
xor ecx, ecx
inc ecx
test ebx, ebx
je 0x47cd9c
lea edi, [esp + 0x38]
mov eax, dword [edi + 8]
lea edi, [edi + 0xc]
mov ebp, dword [edi - 8]
cmp eax, 0x7fffffff
ja 0x47cd83
test edx, edx
jne 0x47cd83
push eax
push ebp
push dword [esi + 0x224]
call fcn.0057f100
add esp, 0xc
cmp dword [edi], 0
jne 0x47cd62
xor eax, eax
inc eax
push eax
push ebp
call fcn.005e7dd0
pop ecx
pop ecx
mov edx, dword [esp + 0x30]
xor ecx, ecx
inc ecx
sub ebx, 1
jne 0x47cd2d
test edx, edx
je 0x47cd9c
push 0xfffffffffffffffb
pop ebx
mov ecx, esi
call fcn.0047cc6b
xor ebp, ebp
jmp 0x47cee0
cmp dword [edi], 0
jne 0x47cd94
push ecx
push ebp
call fcn.005e7dd0
pop ecx
pop ecx
xor ecx, ecx
inc ecx
mov edx, ecx
mov dword [esp + 0x30], edx
jmp 0x47cd69
mov eax, dword [esi + 0x238]
xor ebp, ebp
cmp dword [esi + 0x208], ebp
jne 0x47ced9
cmp dword [eax], ebp
jbe 0x47cecd
push 0xf
push dword [esi + 0x230]
call fcn.004b5b30
mov eax, dword [esi + 0x238]
pop ecx
pop ecx
push ebp
push dword [eax]
push dword [eax + 4]
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x47cdee
mov eax, dword [esi + 0x238]
cmp edi, dword [eax]
jl 0x47ce05
test edi, edi
jns 0x47ce9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47ce9d
test edi, edi
jns 0x47ce0d
mov edx, ebp
jmp 0x47ce17
mov eax, dword [esi + 0x238]
mov edx, dword [eax]
sub edx, edi
push ebp
push ebp
push 0x30
pop ecx
call fcn.004814a9
pop ecx
pop ecx
mov ecx, eax
mov dword [ecx + 0x28], 3
mov dword [ecx + 8], ebp
mov dword [esi + 0x208], ecx
mov dword [esi + 0x204], ecx
test edi, edi
jle 0x47cede
lea eax, [ecx + 0x34]
mov dword [ecx], eax
mov eax, dword [esi + 0x238]
mov ecx, dword [eax]
mov eax, dword [esi + 0x204]
sub ecx, edi
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x204]
mov eax, dword [esi + 0x238]
mov edx, dword [ecx + 4]
mov eax, dword [eax + 4]
mov ecx, dword [ecx]
add eax, edi
push edx
push eax
call section..text
mov eax, dword [esi + 0x204]
add dword [esi + 0x3c], edi
push ebp
push ebp
mov eax, dword [eax + 4]
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
push eax
push dword [esi + 0x230]
call fcn.004b5b60
add esp, 0x18
jmp 0x47cede
mov eax, dword [esi + 0x238]
cmp edi, dword [eax]
jne 0x47cecd
push ebp
xor eax, eax
inc eax
push ebp
push eax
push dword [esi + 0x230]
mov ebx, eax
call fcn.004b5b60
mov eax, dword [esi + 0x238]
add esp, 0x10
add dword [esi + 0x3c], edi
mov eax, dword [eax]
mov dword [esi + 0x38], eax
jmp 0x47cee0
push 0xfffffffffffffffc
pop ebx
mov ecx, esi
call fcn.0047cc6b
jmp 0x47cee0
mov eax, dword [eax]
mov dword [esi + 0x38], eax
mov ebx, ebp
cmp dword [esp + 0x1c], 0
jne 0x47ceed
mov dword [esi + 0x20c], ebp
xor eax, eax
inc eax
cmp ebx, eax
je 0x47cf08
mov ecx, dword [esi + 0x10]
call fcn.00488b7a
test eax, eax
jne 0x47cf08
mov ecx, dword [esi + 0x10]
call fcn.00481a5b
mov eax, ebx
jmp 0x47d25e
test eax, eax
jne 0x47cf25
lea ecx, [esi + 0x20c]
call fcn.0044c7d2
mov edx, dword [esp + 0x30]
xor ecx, ecx
inc ecx
cmp dword [esi + 0x34], 0xffffffff
jne 0x47cf68
test ebx, ebx
je 0x47cf4f
lea edi, [esp + 0x38]
mov eax, dword [edi + 4]
lea edi, [edi + 0xc]
cmp dword [edi], 0
jne 0x47cf47
push ecx
push eax
call fcn.005e7dd0
pop ecx
pop ecx
push 1
pop ecx
sub ebx, 1
jne 0x47cf33
cmp dword [esp + 0x1c], 0
jne 0x47cf60
mov dword [esi + 0x20c], 0
push 0xfffffffffffffffc
pop eax
jmp 0x47d25e
and dword [esp + 0x20], 0
test ebx, ebx
je 0x47d222
lea eax, [esp + 0x38]
mov dword [esp + 0x28], 0x17
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
add eax, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
cmp ecx, 0x7fffffff
ja 0x47d1c6
test edx, edx
jne 0x47d1c6
xor eax, eax
cmp dword [esi + 0x208], eax
jne 0x47d107
cmp dword [esi + 0x1ec], eax
je 0x47d107
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x47cff8
movzx edx, word [ebp]
cmp dx, word [esp + 0x24]
je 0x47cff8
cmp dx, word [esp + 0x28]
push 0x10
pop eax
push 0x1c
pop edx
cmove eax, edx
push eax
push ebp
push 0
push ecx
push edi
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x47d004
push eax
push ecx
push edi
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x10]
mov edi, eax
test edi, edi
jle 0x47d014
cmp edi, ebp
jl 0x47d02b
test edi, edi
jns 0x47d0ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47d0ba
push 0
xor eax, eax
test edi, edi
push 0
cmovns eax, edi
xor edx, edx
push 0x30
pop ecx
mov edi, eax
call fcn.004814a9
mov ebp, eax
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [eax]
cmp ecx, 2
jne 0x47d096
mov eax, dword [esp + 0x10]
xor ecx, ecx
push 0x2eb
push 0x71ef80
inc ecx
sub eax, edi
push ecx
push eax
mov dword [ebp + 4], eax
call fcn.005e7f10
mov ecx, eax
add esp, 0x10
mov dword [ebp], ecx
test ecx, ecx
je 0x47d266
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
push edx
add eax, edi
push eax
call section..text
and dword [ebp + 0x28], 0
pop ecx
pop ecx
jmp 0x47d0aa
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov dword [ebp + 8], edi
mov dword [ebp + 0x28], ecx
mov dword [esi + 0x208], ebp
mov dword [esi + 0x204], ebp
xor ebp, ebp
jmp 0x47d0e6
cmp edi, ebp
jne 0x47d0dc
mov eax, dword [esp + 0x18]
xor edx, edx
inc edx
mov ebp, edx
mov ecx, dword [eax]
test ecx, ecx
jne 0x47d0e6
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.005e7dd0
pop ecx
pop ecx
jmp 0x47d0e6
push 0xfffffffffffffffc
pop ebp
mov ecx, esi
call fcn.0047cc6b
mov edx, dword [esp + 0x30]
test edi, edi
jle 0x47d1e0
add dword [esi + 0x3c], edi
sub dword [esi + 0x38], edi
jns 0x47d1e0
and dword [esi + 0x38], 0
jmp 0x47d1e0
push eax
push eax
push 0x30
xor edx, edx
pop ecx
call fcn.004814a9
mov edi, eax
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
mov dword [edi + 4], eax
add dword [esi + 0x38], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, 2
jne 0x47d16b
push 0x2bc
xor eax, eax
push 0x71eefc
inc eax
push eax
push dword [edi + 4]
call fcn.005e7f10
mov ecx, eax
add esp, 0x10
mov dword [edi], ecx
test ecx, ecx
je 0x47d1f6
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 4]
push eax
mov eax, dword [esp + 0x18]
push eax
call section..text
and dword [edi + 0x28], 0
pop ecx
pop ecx
jmp 0x47d174
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 0x28], ecx
and dword [edi + 8], 0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x47d19b
push 0x10
pop eax
push 0x17
pop edx
cmp word [ecx], dx
push 0x1c
pop edx
cmove eax, edx
push eax
push ecx
lea ecx, [edi + 0xc]
call section..text
pop ecx
pop ecx
and dword [edi + 0x2c], 0
mov eax, dword [esi + 0x208]
mov edx, dword [esp + 0x30]
test eax, eax
jne 0x47d1bb
mov dword [esi + 0x208], edi
mov dword [esi + 0x204], edi
jmp 0x47d1e0
mov dword [eax + 0x2c], edi
mov dword [esi + 0x208], edi
jmp 0x47d1e0
xor ecx, ecx
inc ecx
mov edx, ecx
mov dword [esp + 0x30], edx
test eax, eax
jne 0x47d1e0
push ecx
push edi
call fcn.005e7dd0
mov edx, dword [esp + 0x38]
pop ecx
pop ecx
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, ebx
jae 0x47d222
mov eax, dword [esp + 0x18]
jmp 0x47cf81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov ebx, 0x2bc
push esi
push ebx
mov edx, 0x71ef1c
xor ecx, ecx
call fcn.00488a50
push ebx
push 0x71ef3c
push 0x71ef5c
jmp 0x47d290
cmp dword [esp + 0x1c], 0
jne 0x47d233
mov dword [esi + 0x20c], 0
test edx, edx
je 0x47d241
push 0xfffffffffffffffb
pop ebp
mov ecx, esi
call fcn.0047cc6b
xor eax, eax
inc eax
cmp ebp, eax
je 0x47d25c
mov ecx, dword [esi + 0x10]
call fcn.00488b7a
test eax, eax
jne 0x47d25c
mov ecx, dword [esi + 0x10]
call fcn.00481a5b
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov ebx, 0x2eb
push esi
push ebx
mov edx, 0x71efa0
xor ecx, ecx
call fcn.00488a50
push ebx
push 0x71efc0
push 0x71efe0
call fcn.00401109
add esp, 0x18
push esi
call fcn.005c3000
int3