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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baf56
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x4fc060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 0x24]
mov edx, dword [0x5058f4]
push 0x400
mov dword [ebp - 0x82c], eax
xor ebx, ebx
lea eax, [ebp - 0x410]
push ebx
push eax
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x818], edx
mov dword [ebp - 0x824], 1
call fcn.0043c360
push 0x400
lea ecx, [ebp - 0x810]
push ebx
push ecx
call fcn.0043c360
mov edx, dword [0x4fc020]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x4fc020
call eax
add eax, 0x10
mov dword [ebp - 0x814], eax
mov ecx, 0x4f70ba
mov dword [ebp - 4], ebx
test ecx, 0xffff0000
jne 0x4036c9
mov edx, ecx
movzx edi, dx
push edi
call fcn.00401080
add esp, 4
cmp eax, ebx
je 0x4036dd
push eax
mov eax, edi
lea edi, [ebp - 0x814]
call fcn.00405650
jmp 0x4036dd
push 0x4f70ba
xor eax, eax
lea ebx, [ebp - 0x814]
call fcn.004054e0
xor ebx, ebx
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x828], ebx
cmp dword [ebp + 0x10], eax
jne 0x403855
push str.PASV_r_n
mov eax, 6
lea ebx, [ebp - 0x814]
call fcn.004054e0
mov eax, dword [ebp - 0x814]
push eax
lea ecx, [ebp - 0x410]
push 0x400
push ecx
call fcn.0043a0c3
lea eax, [ebp - 0x410]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403733
mov ebx, dword [ebp + 0xc]
sub eax, edx
mov edi, eax
cmp ebx, 1
jne 0x40376c
mov esi, dword [ebp - 0x818]
push esi
call fcn.00412820
add esp, 4
cmp eax, ebx
jne 0x403786
push edi
lea edx, [ebp - 0x410]
push edx
push esi
call fcn.00410a00
add esp, 0xc
jmp 0x403786
mov ecx, dword [ebp + 8]
push 0
push edi
lea eax, [ebp - 0x410]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [ebp - 0x818]
mov edx, dword [ebp + 8]
push ebx
push edx
lea edi, [ebp - 0x810]
call fcn.004044c0
add esp, 8
mov ecx, edi
call fcn.00404550
cmp eax, 0xe3
jne 0x403845
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x834]
push edx
mov ecx, edi
call fcn.00404670
mov ebx, dword [ebp - 0x828]
add esp, 0x18
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x82c]
shl eax, 8
add eax, ebx
mov dword [ecx], eax
mov esi, dword [ebp - 0x824]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403827
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439f9b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x81c]
xor esi, esi
mov dword [eax], 2
jmp 0x4037fe
mov dword [ebp - 0x820], esi
mov ebx, eax
cmp esi, 0xffff
jge 0x403868
lea ebx, [esi + 1]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push ebx
push esi
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
push ecx
push str.PORT__d__d__d__d__d__d_r_n
lea edi, [ebp - 0x814]
call fcn.00405830
mov edx, dword [ebp - 0x814]
push edx
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.0043a0c3
lea eax, [ebp - 0x410]
add esp, 0x28
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4038b0
sub eax, edx
cmp dword [ebp + 0xc], 1
mov esi, eax
jne 0x4038e8
mov edi, dword [ebp - 0x818]
push edi
call fcn.00412820
add esp, 4
cmp eax, 1
jne 0x4038fc
push esi
lea ecx, [ebp - 0x410]
push ecx
push edi
call fcn.00410a00
add esp, 0xc
jmp 0x4038fc
mov eax, dword [ebp + 8]
push 0
push esi
lea edx, [ebp - 0x410]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x818]
push ecx
push edx
lea edi, [ebp - 0x810]
call fcn.004044c0
add esp, 8
mov ecx, edi
call fcn.00404550
cmp eax, 0xc8
je 0x4037e5
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x824], 0
mov dword [eax], 2
jmp 0x4037f8