Function at 0x481960
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp - 0x164]
movzx ecx, byte [eax + 0xea5]
test ecx, ecx
je 0x481cb6
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x980]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x164]
cmp dword [ecx + 0xea8], 0x66
jl 0x481afa
mov edx, dword [ebp - 0x164]
movzx eax, byte [edx + 0xeb4]
test eax, eax
je 0x4819e9
push str.SCLOSE_n
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.0047d310
add esp, 8
test eax, eax
je 0x4819e4
push str.failed_to_send_close
call fcn.0040cc80
add esp, 4
jmp 0x481d45
jmp 0x481ac5
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x168]
cmp dword [eax + 0xed4], 0
jl 0x481a63
jg 0x481a15
mov ecx, dword [ebp - 0x168]
cmp dword [ecx + 0xed0], 0
jbe 0x481a63
mov edx, dword [ebp - 0x164]
cmp dword [edx + 0xeb0], 0
je 0x481a38
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 0xeb0]
mov dword [ebp - 0x16c], ecx
jmp 0x481a42
mov dword [ebp - 0x16c], 0x51e911
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 0xed0]
push ecx
push str.bulk_transfer_but__d_remaining_for:__s_n
call fcn.0040cd70
add esp, 0xc
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x170], edx
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0xed4], 0
jl 0x481ac5
jg 0x481a8f
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0xed0], 0
jbe 0x481ac5
mov ecx, dword [ebp - 0x164]
call fcn.0047fc50
push eax
mov ecx, dword [ebp - 0x164]
call fcn.0047fc30
push eax
mov ecx, dword [ebp - 0x164]
call fcn.004816f0
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jg 0x481ac3
jmp 0x481ac5
jmp 0x481a63
push 0x12c
push 0
lea edx, [ebp - 0x130]
push edx
call fcn.004bf170
add esp, 0xc
push 0
push 0x122
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 4]
push edx
call sub.WS2_32.dll_recv
jmp 0x481b5c
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
cmp dword [ecx + 0xed4], 0
jl 0x481b5c
jg 0x481b26
mov edx, dword [ebp - 0x174]
cmp dword [edx + 0xed0], 0
jbe 0x481b5c
mov ecx, dword [ebp - 0x164]
call fcn.0047fc50
push eax
mov ecx, dword [ebp - 0x164]
call fcn.0047fc30
push eax
mov ecx, dword [ebp - 0x164]
call fcn.004816f0
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jg 0x481b5a
jmp 0x481b5c
jmp 0x481afa
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov edx, dword [ebp - 0x178]
mov eax, dword [ecx + 0xed0]
or eax, dword [edx + 0xed4]
jne 0x481c77
mov ecx, dword [ebp - 0x164]
cmp dword [ecx + 0xeec], 0
je 0x481c77
push 0x10
mov edx, dword [ebp - 0x164]
mov ecx, dword [edx + 0xeec]
call fcn.00413330
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.004bed60
add esp, 0xc
push 0xcb3
push 0x51e93c
call fcn.004019f0
add esp, 8
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx + 0xeec]
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
je 0x481c0a
push 1
mov ecx, dword [ebp - 0x15c]
call fcn.00486af0
mov dword [ebp - 0x17c], eax
jmp 0x481c14
mov dword [ebp - 0x17c], 0
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xeec], 0
push 0x10
mov edx, dword [ebp - 0x164]
add edx, 0xed8
push edx
lea eax, [ebp - 0x154]
push eax
call fcn.004c2080
add esp, 0xc
test eax, eax
je 0x481c77
push 4
push str.EE_n_n
mov ecx, dword [ebp - 0x134]
call fcn.0047d000
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx + 0xec8]
push edx
push str.md5_mismatch___transfered_file_corrupted__size_d__n
call fcn.0040cc80
add esp, 8
jmp 0x481d45
push 4
push str.OK_n_n
mov ecx, dword [ebp - 0x134]
call fcn.0047d000
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 4
je 0x481cb1
mov eax, dword [ebp - 0x138]
push eax
push str.failed_to_send_reply___d_n
call fcn.0040cc80
add esp, 8
jmp 0x481d45
jmp 0x481d45
mov ecx, dword [ebp - 0x164]
cmp dword [ecx + 0x984], 0
jne 0x481cd4
push str.ftp:_cannot_close__no_download_open
call fcn.0040cc80
add esp, 4
jmp 0x481d45
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x984]
push eax
mov ecx, dword [ebp - 0x164]
call fcn.0047df90
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0x984], 0
mov ecx, dword [ebp - 0x164]
call fcn.0047fee0
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x481d45
push str.226
mov edx, dword [ebp - 0x158]
push edx
call fcn.0040dd40
add esp, 8
movzx eax, al
test eax, eax
jne 0x481d45
mov ecx, dword [ebp - 0x158]
push ecx
push str.ftp:_unexpected_reply_after_download:__s
call fcn.0040cc80
add esp, 8
mov esp, ebp
pop ebp
ret