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

Disassembly:
mov eax, 0x4e8738
call fcn.0047b598
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41c385
push eax
call fcn.004dcc0d
pop ecx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x41c396
push eax
call fcn.004dcc0d
pop ecx
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x41c3a7
push eax
call fcn.004dcc0d
pop ecx
mov dword [esi + 8], ebx
push edi
mov edi, 0x1fa0
push edi
mov dword [esi + 0x14], ebx
call fcn.004dcbe4
push edi
push ebx
push eax
mov dword [esi + 0xc], eax
call fcn.0047b7a0
push 0x14
lea eax, [ebp - 0x58]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
call fcn.0047b7a0
add esp, 0x1c
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], 0x10000
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0x24], ebx
jne 0x41c3fe
mov eax, edi
push ebx
add eax, dword [esi + 0xc]
push 1
jmp 0x41c435
cmp dword [ebp - 0x28], ebx
jne 0x41c41f
mov eax, edi
push ebx
add eax, dword [esi + 0x10]
push 1
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41c723
jmp 0x41c447
cmp dword [ebp - 0x14], ebx
push ebx
push 1
je 0x41c430
mov eax, dword [ebp - 0x18]
lea eax, [ebp + eax - 0x58]
jmp 0x41c435
mov eax, edi
add eax, dword [esi + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41c735
inc edi
cmp dword [ebp - 0x24], ebx
jne 0x41c60f
mov eax, dword [esi + 0xc]
cmp byte [eax + edi - 1], 0xa
jne 0x41c3ef
cmp dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x20]
jne 0x41c496
lea edx, [edi - 1]
cmp ecx, edx
jge 0x41c48d
cmp byte [eax + ecx], 0x20
je 0x41c477
inc ecx
cmp ecx, edx
jl 0x41c46a
jmp 0x41c48d
lea eax, [eax + ecx + 1]
push eax
call fcn.0047bf26
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x41c603
or dword [ebp - 0x1c], 0xffffffff
jmp 0x41c603
add eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.004dc6dc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004d6562
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x41c52c
mov eax, dword [esi + 0xc]
push 1
mov byte [edi + eax], bl
mov eax, dword [esi + 0x14]
pop edi
cmp eax, ebx
mov dword [ebp - 0x24], edi
je 0x41c4e7
inc eax
push eax
call fcn.004dcbe4
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], eax
inc ecx
push ecx
push ebx
push eax
call fcn.0047b7a0
add esp, 0x10
xor edi, edi
jmp 0x41c5f7
push str.chunked
push dword [esi + 0xc]
call fcn.0047dbf0
pop ecx
test eax, eax
pop ecx
je 0x41c518
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], edi
mov dword [esi + 0x14], ebx
call fcn.004dcbe4
or dword [ebp - 0x18], 0xffffffff
pop ecx
mov dword [esi + 0x10], eax
jmp 0x41c5f7
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0x4000
mov dword [ebp - 0x38], ebx
push 0x4001
jmp 0x41c4c9
push 0x526f40
lea ecx, [ebp - 0x10]
call fcn.004d612d
cmp eax, ebx
mov dword [ebp - 0x20], eax
jle 0x41c5f7
push eax
lea eax, [ebp - 0x34]
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004d5f81
cmp dword [esi + 0x14], ebx
mov byte [ebp - 4], 1
jne 0x41c59a
cmp dword [ebp - 0x28], ebx
jne 0x41c59a
push str.Content_length
push dword [ebp - 0x34]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
jne 0x41c59a
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
add eax, 2
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004d5f5e
push dword [ebp - 0x3c]
call fcn.0047bf26
pop ecx
mov dword [esi + 0x14], eax
lea ecx, [ebp - 0x3c]
call fcn.004dc66e
push str.Location
push dword [ebp - 0x34]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
jne 0x41c5ec
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
add eax, 2
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004d5f5e
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov eax, dword [eax - 8]
inc eax
push eax
call fcn.004dcbe4
push dword [ebp - 0x30]
mov dword [esi + 8], eax
push eax
call fcn.0047b680
add esp, 0xc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004dc66e
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004dc66e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004dc66e
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
je 0x41c3f4
cmp dword [ebp - 0x28], ebx
jne 0x41c670
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x41c735
cmp eax, edi
jg 0x41c3ef
cmp dword [ebp - 0x38], ebx
jne 0x41c735
cmp dword [esi + 0x18], ebx
je 0x41c735
add eax, 0x10000
push eax
call fcn.004dcbe4
push dword [esi + 0x14]
mov dword [ebp - 0x44], eax
push dword [esi + 0x10]
push eax
call fcn.0047bb20
push dword [esi + 0x10]
add dword [esi + 0x14], 0x10000
call fcn.004dcc0d
mov eax, dword [ebp - 0x44]
add esp, 0x14
mov dword [esi + 0x10], eax
jmp 0x41c3ef
cmp dword [ebp - 0x14], ebx
je 0x41c6f2
mov eax, dword [ebp - 0x18]
cmp byte [ebp + eax - 0x58], 0xa
jne 0x41c6e9
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
push eax
lea eax, [ebp - 0x58]
push str._x_r_n
push eax
call fcn.0047e0f2
mov eax, dword [ebp - 0x40]
add esp, 0xc
cmp eax, ebx
je 0x41c735
add eax, 2
add dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 0x2c]
jl 0x41c6e6
add eax, 0x10000
push eax
call fcn.004dcbe4
push dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
push dword [esi + 0x10]
push eax
call fcn.0047bb20
mov eax, dword [esi + 0x14]
push dword [esi + 0x10]
add eax, 0x10000
mov dword [ebp - 0x2c], eax
call fcn.004dcc0d
mov eax, dword [ebp - 0x44]
add esp, 0x14
mov dword [esi + 0x10], eax
mov dword [ebp - 0x14], ebx
dec edi
inc dword [ebp - 0x18]
jmp 0x41c3ef
mov eax, dword [esi + 0x14]
cmp eax, edi
jne 0x41c3ef
add eax, 0xfffffffe
push 0x14
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x58]
dec edi
push ebx
push eax
mov dword [ebp - 0x14], 1
dec edi
call fcn.0047b7a0
add esp, 0xc
mov dword [ebp - 0x18], ebx
jmp 0x41c3ef
cmp dword [esi + 0x14], edi
jle 0x41c735
cmp dword [ebp - 0x38], ebx
jne 0x41c735
cmp dword [esi + 0x18], ebx
je 0x41c735
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x10]
pop edi
cmp eax, ebx
je 0x41c743
mov ecx, dword [esi + 0x14]
mov byte [eax + ecx], bl
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41c74c
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret