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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
push ebp
inc ecx
mov eax, 0x40000000
mov dword [esp + 0x20], ecx
mov ebp, ecx
push esi
push edi
test eax, ebx
je 0x4806fa
xor ebx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], ebx
mov eax, ecx
jmp 0x480700
xor eax, eax
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x480710
push 0xfffffffffffffffc
pop eax
jmp 0x480c75
xor edx, edx
mov dword [esp + 0x34], edx
cmp dword [esi + 0x224], edx
je 0x480922
test eax, eax
jne 0x480738
lea ecx, [esi + 0x20c]
call fcn.0044cfd4
mov edx, dword [esp + 0x34]
xor ecx, ecx
inc ecx
test ebx, ebx
je 0x4807af
lea edi, [esp + 0x3c]
mov eax, dword [edi + 8]
lea edi, [edi + 0xc]
mov ebp, dword [edi - 8]
cmp eax, 0x7fffffff
ja 0x480796
test edx, edx
jne 0x480796
push eax
push ebp
push dword [esi + 0x224]
call fcn.00584350
add esp, 0xc
cmp dword [edi], 0
jne 0x480775
xor eax, eax
inc eax
push eax
push ebp
call fcn.005ed680
pop ecx
pop ecx
mov edx, dword [esp + 0x34]
xor ecx, ecx
inc ecx
sub ebx, 1
jne 0x480740
test edx, edx
je 0x4807af
push 0xfffffffffffffffb
pop ebx
mov ecx, esi
call fcn.00480680
xor ebp, ebp
jmp 0x4808f3
cmp dword [edi], 0
jne 0x4807a7
push ecx
push ebp
call fcn.005ed680
pop ecx
pop ecx
xor ecx, ecx
inc ecx
mov edx, ecx
mov dword [esp + 0x34], edx
jmp 0x48077c
mov eax, dword [esi + 0x238]
xor ebp, ebp
cmp dword [esi + 0x208], ebp
jne 0x4808ec
cmp dword [eax], ebp
jbe 0x4808e0
push 0xf
push dword [esi + 0x230]
call fcn.004ba9f0
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 0x480801
mov eax, dword [esi + 0x238]
cmp edi, dword [eax]
jl 0x480818
test edi, edi
jns 0x4808b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4808b0
test edi, edi
jns 0x480820
mov edx, ebp
jmp 0x48082a
mov eax, dword [esi + 0x238]
mov edx, dword [eax]
sub edx, edi
push ebp
push ebp
push 0x30
pop ecx
call fcn.00484ef6
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 0x4808f1
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.004baa20
add esp, 0x18
jmp 0x4808f1
mov eax, dword [esi + 0x238]
cmp edi, dword [eax]
jne 0x4808e0
push ebp
xor eax, eax
inc eax
push ebp
push eax
push dword [esi + 0x230]
mov ebx, eax
call fcn.004baa20
mov eax, dword [esi + 0x238]
add esp, 0x10
add dword [esi + 0x3c], edi
mov eax, dword [eax]
mov dword [esi + 0x38], eax
jmp 0x4808f3
push 0xfffffffffffffffc
pop ebx
mov ecx, esi
call fcn.00480680
jmp 0x4808f3
mov eax, dword [eax]
mov dword [esi + 0x38], eax
mov ebx, ebp
cmp dword [esp + 0x20], 0
jne 0x480900
mov dword [esi + 0x20c], ebp
xor eax, eax
inc eax
cmp ebx, eax
je 0x48091b
mov ecx, dword [esi + 0x10]
call fcn.0048cc5d
test eax, eax
jne 0x48091b
mov ecx, dword [esi + 0x10]
call fcn.0048549f
mov eax, ebx
jmp 0x480c75
test eax, eax
jne 0x480938
lea ecx, [esi + 0x20c]
call fcn.0044cfd4
mov edx, dword [esp + 0x34]
xor ecx, ecx
inc ecx
cmp dword [esi + 0x34], 0xffffffff
jne 0x48097c
test ebx, ebx
je 0x480962
lea edi, [esp + 0x3c]
mov eax, dword [edi + 4]
lea edi, [edi + 0xc]
cmp dword [edi], 0
jne 0x48095a
push ecx
push eax
call fcn.005ed680
pop ecx
pop ecx
push 1
pop ecx
sub ebx, 1
jne 0x480946
cmp dword [esp + 0x20], 0
jne 0x480708
mov dword [esi + 0x20c], 0
jmp 0x480708
and dword [esp + 0x24], 0
test ebx, ebx
je 0x480c39
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], 0x17
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
add eax, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov eax, dword [eax]
cmp ecx, 0x7fffffff
ja 0x480bda
test edx, edx
jne 0x480bda
xor eax, eax
cmp dword [esi + 0x208], eax
jne 0x480b1b
cmp dword [esi + 0x1ec], eax
je 0x480b1b
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x480a0c
movzx edx, word [ebp]
cmp dx, word [esp + 0x28]
je 0x480a0c
cmp dx, word [esp + 0x2c]
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 0x480a18
push eax
push ecx
push edi
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x14]
mov edi, eax
test edi, edi
jle 0x480a28
cmp edi, ebp
jl 0x480a3f
test edi, edi
jns 0x480ace
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x480ace
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.00484ef6
mov ebp, eax
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
mov ecx, dword [eax]
cmp ecx, 2
jne 0x480aaa
mov eax, dword [esp + 0x14]
xor ecx, ecx
push 0x2eb
push 0x73d4c4
inc ecx
sub eax, edi
push ecx
push eax
mov dword [ebp + 4], eax
call fcn.005ed7c0
mov ecx, eax
add esp, 0x10
mov dword [ebp], ecx
test ecx, ecx
je 0x480c7d
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x18]
push edx
add eax, edi
push eax
call section..text
and dword [ebp + 0x28], 0
pop ecx
pop ecx
jmp 0x480abe
mov eax, dword [esp + 0x18]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
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 0x480afa
cmp edi, ebp
jne 0x480af0
mov eax, dword [esp + 0x1c]
xor edx, edx
inc edx
mov ebp, edx
mov ecx, dword [eax]
test ecx, ecx
jne 0x480afa
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.005ed680
pop ecx
pop ecx
jmp 0x480afa
push 0xfffffffffffffffc
pop ebp
mov ecx, esi
call fcn.00480680
mov edx, dword [esp + 0x34]
test edi, edi
jle 0x480bf4
add dword [esi + 0x3c], edi
sub dword [esi + 0x38], edi
jns 0x480bf4
and dword [esi + 0x38], 0
jmp 0x480bf4
push eax
push eax
push 0x30
xor edx, edx
pop ecx
call fcn.00484ef6
mov edi, eax
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
mov dword [edi + 4], eax
add dword [esi + 0x38], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, 2
jne 0x480b7f
push 0x2bc
xor eax, eax
push 0x73d440
inc eax
push eax
push dword [edi + 4]
call fcn.005ed7c0
mov ecx, eax
add esp, 0x10
mov dword [edi], ecx
test ecx, ecx
je 0x480c0a
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
call section..text
and dword [edi + 0x28], 0
pop ecx
pop ecx
jmp 0x480b88
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 0x28], ecx
and dword [edi + 8], 0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x480baf
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 + 0x34]
test eax, eax
jne 0x480bcf
mov dword [esi + 0x208], edi
mov dword [esi + 0x204], edi
jmp 0x480bf4
mov dword [eax + 0x2c], edi
mov dword [esi + 0x208], edi
jmp 0x480bf4
xor ecx, ecx
inc ecx
mov edx, ecx
mov dword [esp + 0x34], edx
test eax, eax
jne 0x480bf4
push ecx
push edi
call fcn.005ed680
mov edx, dword [esp + 0x3c]
pop ecx
pop ecx
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, ebx
jae 0x480c39
mov eax, dword [esp + 0x1c]
jmp 0x480995
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov ebx, 0x2bc
push esi
push ebx
mov edx, 0x73d460
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push ebx
push 0x73d480
push 0x73d4a0
jmp 0x480caa
cmp dword [esp + 0x20], 0
jne 0x480c4a
mov dword [esi + 0x20c], 0
test edx, edx
je 0x480c58
push 0xfffffffffffffffb
pop ebp
mov ecx, esi
call fcn.00480680
xor eax, eax
inc eax
cmp ebp, eax
je 0x480c73
mov ecx, dword [esi + 0x10]
call fcn.0048cc5d
test eax, eax
jne 0x480c73
mov ecx, dword [esi + 0x10]
call fcn.0048549f
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov ebx, 0x2eb
push esi
push ebx
mov edx, 0x73d4e4
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push ebx
push 0x73d504
push 0x73d524
call fcn.00401109
add esp, 0xc
push esi
call fcn.005c8390
int3