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

Disassembly:
mov eax, 0x414bb6
call fcn.0040c7c8
sub esp, 0x54
mov eax, dword [0x41c120]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xec]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x38], ebx
je 0x401fc8
push eax
call fcn.0040c8a5
pop ecx
mov dword [esi + 0xec], ebx
mov eax, dword [esi + 0xf0]
cmp eax, ebx
je 0x401fdf
push eax
call fcn.0040c8a5
pop ecx
mov dword [esi + 0xf0], ebx
mov eax, dword [esi + 0xe8]
cmp eax, ebx
je 0x401ff6
push eax
call fcn.0040c8a5
pop ecx
mov dword [esi + 0xe8], ebx
push edi
mov edi, 0x1fa0
push edi
mov dword [esi + 0xf4], ebx
call fcn.0040b58b
push edi
push ebx
push eax
mov dword [esi + 0xec], eax
call fcn.0040c8b0
push 0x14
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x34], ebx
call fcn.0040c8b0
xor edi, edi
add esp, 0x1c
inc edi
mov dword [ebp - 0x40], 0x10000
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x44], ebx
jne 0x402054
mov eax, dword [esi + 0xec]
jmp 0x4020f1
cmp dword [ebp - 0x48], ebx
jne 0x4020dd
mov eax, dword [esi + 0xf0]
add eax, dword [ebp - 0x28]
push ebx
push edi
push eax
push dword [esi + 0xe4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x402107
mov eax, dword [ebp - 0x28]
cmp dword [esi + 0xf4], eax
jle 0x40209b
cmp dword [ebp - 0x4c], ebx
jne 0x40209b
cmp dword [esi + 0xf8], ebx
je 0x40209b
mov dword [esi + 0xf4], eax
mov eax, dword [esi + 0xf0]
cmp eax, ebx
pop edi
je 0x4020af
mov ecx, dword [esi + 0xf4]
mov byte [eax + ecx], bl
cmp dword [ebp - 0x38], 0xffffffff
jne 0x4020c4
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xfc], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040bd6e
leave
ret
cmp dword [ebp - 0x34], ebx
je 0x4020eb
mov eax, dword [ebp - 0x30]
lea eax, [ebp + eax - 0x24]
jmp 0x4020f4
mov eax, dword [esi + 0xf0]
add eax, dword [ebp - 0x28]
push ebx
push edi
push eax
push dword [esi + 0xe4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40209b
inc dword [ebp - 0x28]
cmp dword [ebp - 0x44], ebx
jne 0x40232b
mov eax, dword [esi + 0xec]
mov ecx, dword [ebp - 0x28]
cmp byte [eax + ecx - 1], 0xa
jne 0x402044
cmp dword [ebp - 0x38], ebx
mov ecx, dword [ebp - 0x3c]
jne 0x402166
mov edx, dword [ebp - 0x28]
dec edx
cmp ecx, edx
mov dword [ebp - 0x3c], ecx
jge 0x40215d
cmp byte [eax + ecx], 0x20
je 0x402147
inc ecx
cmp ecx, edx
jl 0x40213a
jmp 0x40215d
lea eax, [eax + ecx + 1]
push eax
call fcn.0040cb00
cmp eax, ebx
pop ecx
mov dword [ebp - 0x38], eax
jne 0x40231c
or dword [ebp - 0x38], 0xffffffff
jmp 0x40231c
add eax, ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401d17
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401b23
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], ebx
jne 0x40221f
mov eax, dword [esi + 0xec]
mov ecx, dword [ebp - 0x28]
mov byte [ecx + eax], bl
mov eax, dword [esi + 0xf4]
cmp eax, ebx
mov dword [ebp - 0x44], edi
je 0x4021c8
inc eax
push eax
call fcn.0040b58b
mov ecx, dword [esi + 0xf4]
inc ecx
push ecx
push ebx
push eax
mov dword [esi + 0xf0], eax
call fcn.0040c8b0
add esp, 0x10
mov dword [ebp - 0x28], ebx
jmp 0x40230d
push str.chunked
push dword [esi + 0xec]
call fcn.0040cb40
test eax, eax
pop ecx
pop ecx
je 0x402205
push dword [ebp - 0x40]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x34], edi
mov dword [esi + 0xf4], ebx
call fcn.0040b58b
or dword [ebp - 0x30], 0xffffffff
pop ecx
mov dword [esi + 0xf0], eax
mov dword [ebp - 0x28], edi
jmp 0x40230d
mov dword [esi + 0xf8], edi
mov dword [esi + 0xf4], 0x4000
mov dword [ebp - 0x4c], ebx
push 0x4001
jmp 0x4021a3
push ebx
push 0x416318
lea ecx, [ebp - 0x2c]
call fcn.00401496
mov edi, eax
cmp edi, ebx
jle 0x40230a
push edi
push ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004018a4
cmp dword [esi + 0xf4], ebx
mov byte [ebp - 4], 1
jne 0x4022a2
cmp dword [ebp - 0x48], ebx
jne 0x4022a2
push str.Content_length
push dword [ebp - 0x54]
call fcn.0040c07f
test eax, eax
pop ecx
pop ecx
jne 0x4022a2
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401b6d
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00401774
push eax
call fcn.0040cb00
pop ecx
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
mov dword [esi + 0xf4], eax
mov byte [ebp - 4], 1
call fcn.004012f9
push str.Location
push dword [ebp - 0x54]
call fcn.0040c07f
test eax, eax
pop ecx
pop ecx
jne 0x4022ff
add edi, 2
push edi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401b6d
mov eax, dword [ebp - 0x50]
mov eax, dword [eax - 0xc]
inc eax
push eax
mov byte [ebp - 4], 3
call fcn.0040b58b
pop ecx
push ebx
lea ecx, [ebp - 0x50]
mov dword [esi + 0xe8], eax
call fcn.00401774
push eax
push dword [esi + 0xe8]
call fcn.0040c980
pop ecx
pop ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.004012f9
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.004012f9
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012f9
cmp dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
je 0x402049
cmp dword [ebp - 0x48], ebx
jne 0x4023a2
mov eax, dword [esi + 0xf4]
cmp eax, ebx
je 0x40209b
cmp eax, dword [ebp - 0x28]
jg 0x402044
cmp dword [ebp - 0x4c], ebx
jne 0x40209b
cmp dword [esi + 0xf8], ebx
je 0x40209b
add eax, 0x10000
push eax
call fcn.0040b58b
push dword [esi + 0xf4]
mov dword [ebp - 0x58], eax
push dword [esi + 0xf0]
push eax
call fcn.0040b6c0
push dword [esi + 0xf0]
add dword [esi + 0xf4], 0x10000
call fcn.0040c8a5
mov eax, dword [ebp - 0x58]
add esp, 0x14
mov dword [esi + 0xf0], eax
jmp 0x402044
cmp dword [ebp - 0x34], ebx
je 0x40243c
mov eax, dword [ebp - 0x30]
cmp byte [ebp + eax - 0x24], 0xa
jne 0x402431
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push str._x_r_n
push eax
mov dword [ebp - 0x5c], ebx
call fcn.0040cb05
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp eax, ebx
je 0x40209b
add eax, 2
add dword [esi + 0xf4], eax
mov eax, dword [esi + 0xf4]
cmp eax, dword [ebp - 0x40]
jl 0x40242e
add eax, 0x10000
push eax
call fcn.0040b58b
push dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
push dword [esi + 0xf0]
push eax
call fcn.0040b6c0
mov eax, dword [esi + 0xf4]
push dword [esi + 0xf0]
add eax, 0x10000
mov dword [ebp - 0x40], eax
call fcn.0040c8a5
mov eax, dword [ebp - 0x58]
add esp, 0x14
mov dword [esi + 0xf0], eax
mov dword [ebp - 0x34], ebx
dec dword [ebp - 0x28]
inc dword [ebp - 0x30]
jmp 0x402044
mov eax, dword [esi + 0xf4]
cmp eax, dword [ebp - 0x28]
jne 0x402044
sub dword [ebp - 0x28], 2
add eax, 0xfffffffe
push 0x14
mov dword [esi + 0xf4], eax
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x34], edi
call fcn.0040c8b0
add esp, 0xc
jmp 0x402041