Function at 0x472540
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], edx
push edi
mov edi, ecx
mov dword [ebp - 8], eax
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
test edi, edi
je 0x4729ba
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
test eax, eax
je 0x472590
push 1
push esi
push ebx
push edx
push 3
push edi
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jle 0x4729bc
mov edx, dword [ebp - 4]
nop
test esi, esi
js 0x4728b9
mov eax, dword [edi + 4]
test eax, eax
je 0x4725b6
mov eax, dword [eax + 0x104]
test eax, eax
je 0x4725b6
push ebx
push edx
push edi
call eax
add esp, 0xc
jmp 0x4728ac
mov cl, byte [edi + 0x4c]
movzx eax, cl
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x4725c8
jmp dword [eax*4 + 0x4729c4]
mov dword [ebp - 8], 0
test edx, edx
je 0x472696
test byte [edi + 0x48], 1
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, ebx
je 0x47260b
push 2
push eax
push 0
call fcn.004b5fa0
add esp, 0xc
cmp eax, 0xffffff36
je 0x47260f
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x47269b
push 0
jmp 0x4725ee
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x47261e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
jmp 0x47269b
call fcn.00472af0
mov esi, eax
test esi, esi
je 0x472600
test byte [edi + 0x48], 1
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, ebx
je 0x472656
push 2
push eax
push esi
call fcn.004b5fa0
add esp, 0xc
test eax, eax
jns 0x472675
mov ecx, esi
call fcn.00472b30
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x47269b
push 0
push eax
push esi
call fcn.004b5fa0
add esp, 0xc
test eax, eax
jns 0x472675
mov ecx, esi
call fcn.00472b30
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x47269b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x472683
mov ecx, eax
call fcn.00472b30
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov ecx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], ebx
jmp 0x47269e
mov ecx, 0xffffff53
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x18]
test ecx, ecx
mov esi, ecx
cmovle eax, ebx
mov ebx, eax
mov eax, dword [ebp - 0x14]
cmovle eax, edx
mov dword [ebp - 4], eax
jmp case.default.0x4725c8
test edx, edx
je 0x47277c
mov esi, 0xfffffffe
cmp cl, 5
je 0x4726d1
xor esi, esi
jmp case.default.0x4725c8
cmp dword [edi + 0x10], 0
je 0x472762
mov eax, dword [edi + 0x34]
test ebx, ebx
jne 0x4726f1
mov ecx, dword [edi + 0x18]
add ecx, eax
xor esi, esi
mov dword [ebp - 0x1c], ecx
jmp case.default.0x4725c8
mov ecx, dword [edi + 0x38]
cmp eax, ecx
jge 0x472701
mov esi, dword [edi + 0x30]
mov edx, ecx
sub edx, eax
jmp 0x472733
test ecx, ecx
jle 0x472711
cmp eax, ecx
jne 0x472711
or esi, 0xffffffff
jmp case.default.0x4725c8
mov esi, dword [edi + 0x30]
mov edx, esi
sub edx, eax
mov dword [ebp - 0x10], esi
test edx, edx
jg 0x472736
test ecx, ecx
jne 0x47272b
or esi, 0xffffffff
jmp case.default.0x4725c8
mov edx, ecx
jg 0x472731
mov edx, esi
xor eax, eax
mov dword [ebp - 0x10], esi
mov ecx, dword [edi + 0x18]
cmp ebx, edx
mov esi, ebx
cmovge esi, edx
add ecx, eax
add eax, esi
mov dword [ebp - 0x1c], ecx
mov edx, esi
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x34], eax
cmp eax, dword [ebp - 0x10]
jne 0x47275f
test ecx, ecx
jle 0x47275f
mov dword [edi + 0x34], 0
mov edx, dword [ebp - 4]
test esi, esi
jle case.default.0x4725c8
push esi
push edx
push dword [ebp - 0x1c]
call fcn.0041d1d0
add esp, 0xc
jmp case.default.0x4725c8
mov esi, 0xffffff53
jmp case.default.0x4725c8
mov ecx, dword [edi]
test ecx, ecx
je 0x4727ae
test edx, edx
je 0x4727ae
test ebx, ebx
jne 0x47279c
lea esi, [ebx + 1]
jmp case.default.0x4725c8
mov edx, dword [edi + 0x30]
push ecx
add edx, ebx
call fcn.00463190
add esp, 4
test eax, eax
jne 0x4727b5
xor esi, esi
jmp case.default.0x4725c8
mov eax, dword [edi]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4727c4
xor esi, esi
jmp case.default.0x4725c8
mov eax, dword [edi + 0x30]
push ebx
push dword [ebp - 4]
add eax, ecx
push eax
call fcn.0041d1d0
mov ecx, dword [edi]
add esp, 0xc
mov esi, ebx
mov eax, dword [ecx]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 8]
add dword [edi + 0x30], ebx
mov dword [edi + 0x40], eax
jmp case.default.0x4725c8
mov eax, dword [edi + 0x18]
test eax, eax
je 0x472806
push eax
push ebx
push 1
push edx
call fcn.00430139
add esp, 0x10
jmp 0x4728ac
mov esi, 0xffffff52
jmp case.default.0x4725c8
cmp dword [edi + 0xc], 0
je case.default.0x4725c8
xor esi, esi
test edx, edx
je 0x47277c
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x472889
cmp dword [ecx + 0x230], esi
jne 0x472877
mov eax, 0x4fe750
cmp dword [0x4fe758], esi
je 0x472866
add ecx, 0x228
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
nop dword [eax + eax]
cmp ecx, dword [eax]
je 0x472861
add eax, 0xc
cmp dword [eax + 8], esi
jne 0x472850
mov eax, dword [ebp - 0x10]
jmp 0x47286c
add eax, 4
jmp 0x47286c
lea eax, [ecx + 0x228]
cmp dword [eax], 0x357
mov ecx, dword [edi + 0x18]
jne 0x472889
push ebx
call fcn.0046fd40
add esp, 4
lea esi, [eax - 1]
neg esi
sbb esi, esi
jmp case.default.0x4725c8
push ebx
call fcn.0046ef00
add esp, 4
cmp eax, 1
mov eax, 0xffffffff
cmovne esi, eax
jmp case.default.0x4725c8
push 0
push ebx
push edx
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x47258c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4728d9
push esi
push 0
push ebx
push dword [ebp - 4]
push 0x83
push ecx
call eax
add esp, 0x18
mov esi, eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4729af
mov eax, dword [0x420ede8]
push ecx
test eax, eax
je 0x4729a7
call eax
jmp 0x4729ac
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x44], 0
je 0x472907
or esi, 0xffffffff
jmp 0x4728bc
mov esi, dword [edi + 0x18]
test esi, esi
jne 0x472915
mov esi, 0xffffff53
jmp 0x4728bc
and dword [edi + 0x48], 0xffffffef
test edx, edx
je 0x47296d
test ebx, ebx
js 0x47296d
mov eax, dword [esi + 0x444]
test eax, eax
je 0x472942
push 1
push 8
push esi
call eax
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0x448], 8
push ebx
mov ecx, esi
call fcn.0048da20
mov ecx, dword [ebp - 0xc]
mov esi, eax
add esp, 4
test esi, esi
jns 0x47295b
or esi, 0xffffffff
jmp 0x472972
jne 0x4728bc
mov dword [ecx + 0x44], 1
jmp 0x4728bc
mov esi, 0xffffff53
mov eax, dword [edi + 0x18]
test eax, eax
je 0x472961
mov eax, dword [eax + 0x2b8]
cmp eax, 0xfffffebd
je 0x47299e
cmp eax, 0xfffffeb9
je 0x47299e
cmp eax, 0xfffffea9
je 0x472961
cmp eax, 2
je 0x47299e
cmp eax, 3
jne 0x472961
or dword [edi + 0x48], 0x10
jmp 0x4728bc
call fcn.0042a55b
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
jle 0x4729ba
test esi, esi
jg 0x4729bc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret