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

Disassembly:
mov eax, 0x100d737c
call fcn.100ac440
sub esp, 0x54
mov eax, dword [0x1011c710]
push ebx
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x34], ebx
je 0x10020e31
push eax
call fcn.100c6c35
pop ecx
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x10020e42
push eax
call fcn.100c6c35
pop ecx
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x10020e53
push eax
call fcn.100c6c35
pop ecx
mov dword [esi + 8], ebx
push edi
mov edi, 0x1fa0
push edi
mov dword [esi + 0x14], ebx
call fcn.100c6c30
push edi
push ebx
push eax
mov dword [esi + 0xc], eax
call fcn.100ab720
push 0x14
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], ebx
call fcn.100ab720
xor edi, edi
add esp, 0x1c
inc edi
mov dword [ebp - 0x40], 0x10000
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x44], ebx
jne 0x10020eaa
mov eax, dword [esi + 0xc]
push ebx
push edi
jmp 0x10020f2f
cmp dword [ebp - 0x3c], ebx
push ebx
push edi
jne 0x10020f1e
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x10020f40
mov eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], eax
jle 0x10020eda
cmp dword [ebp - 0x4c], ebx
jne 0x10020eda
cmp dword [esi + 0x18], ebx
je 0x10020eda
mov dword [esi + 0x14], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
cmp eax, ebx
pop edi
je 0x10020ef1
mov ecx, dword [esi + 0x14]
mov byte [eax + ecx], bl
cmp dword [ebp - 0x34], 0xffffffff
jne 0x10020f03
mov dword [ebp - 0x34], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.100ac33f
leave
ret
cmp dword [ebp - 0x30], ebx
je 0x10020f2c
mov eax, dword [ebp - 0x38]
lea eax, [ebp + eax - 0x24]
jmp 0x10020f32
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10020eda
inc dword [ebp - 0x28]
cmp dword [ebp - 0x44], ebx
jne 0x10021133
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x28]
cmp byte [eax + ecx - 1], 0xa
jne 0x10020e9b
cmp dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x48]
jne 0x10020f99
mov edx, dword [ebp - 0x28]
dec edx
cmp ecx, edx
jge 0x10020f90
cmp byte [eax + ecx], 0x20
je 0x10020f7a
inc ecx
cmp ecx, edx
jl 0x10020f6d
jmp 0x10020f90
lea eax, [eax + ecx + 1]
push eax
call fcn.100ad185
cmp eax, ebx
pop ecx
mov dword [ebp - 0x34], eax
jne 0x10021124
or dword [ebp - 0x34], 0xffffffff
jmp 0x10021124
add eax, ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000223a
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.1000436c
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], ebx
jne 0x10021033
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x28]
mov byte [ecx + eax], bl
mov eax, dword [esi + 0x14]
cmp eax, ebx
mov dword [ebp - 0x44], edi
je 0x10020feb
inc eax
push eax
call fcn.100c6c30
mov ecx, dword [esi + 0x14]
inc ecx
push ecx
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.100ab720
add esp, 0x10
mov dword [ebp - 0x28], ebx
jmp 0x10021115
push str.chunked
push dword [esi + 0xc]
call fcn.100ad320
test eax, eax
pop ecx
pop ecx
je 0x1002101f
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], edi
mov dword [esi + 0x14], ebx
call fcn.100c6c30
or dword [ebp - 0x38], 0xffffffff
pop ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x28], edi
jmp 0x10021115
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0x4000
mov dword [ebp - 0x4c], ebx
push 0x4001
jmp 0x10020fcc
push ebx
push 0x100e6ce0
lea ecx, [ebp - 0x2c]
call fcn.10003f61
mov edi, eax
cmp edi, ebx
jle 0x10021112
push edi
push ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003ff3
cmp dword [esi + 0x14], ebx
mov byte [ebp - 4], 1
jne 0x100210b0
cmp dword [ebp - 0x3c], ebx
jne 0x100210b0
push str.Content_length
push dword [ebp - 0x54]
call fcn.100ace10
test eax, eax
pop ecx
pop ecx
jne 0x100210b0
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100042ea
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.1000192d
push eax
call fcn.100ad185
pop ecx
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 1
call fcn.10001199
push str.Location
push dword [ebp - 0x54]
call fcn.100ace10
test eax, eax
pop ecx
pop ecx
jne 0x10021107
add edi, 2
push edi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100042ea
mov eax, dword [ebp - 0x50]
mov eax, dword [eax - 0xc]
inc eax
push eax
mov byte [ebp - 4], 3
call fcn.100c6c30
pop ecx
push ebx
lea ecx, [ebp - 0x50]
mov dword [esi + 8], eax
call fcn.1000192d
push eax
push dword [esi + 8]
call fcn.100ac900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.10001199
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.10001199
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10001199
cmp dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
je 0x10020ea0
cmp dword [ebp - 0x3c], ebx
jne 0x10021195
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10020ee3
cmp eax, dword [ebp - 0x28]
jg 0x10020e9b
cmp dword [ebp - 0x4c], ebx
jne 0x10020ee3
cmp dword [esi + 0x18], ebx
je 0x10020ee3
add eax, 0x10000
push eax
call fcn.100c6c30
push dword [esi + 0x14]
mov dword [ebp - 0x58], eax
push dword [esi + 0x10]
push eax
call fcn.100ab860
push dword [esi + 0x10]
add dword [esi + 0x14], 0x10000
call fcn.100c6c35
mov eax, dword [ebp - 0x58]
add esp, 0x14
mov dword [esi + 0x10], eax
jmp 0x10020e9b
cmp dword [ebp - 0x30], ebx
je 0x10021219
mov eax, dword [ebp - 0x38]
cmp byte [ebp + eax - 0x24], 0xa
jne 0x1002120e
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push str._x_r_n
push eax
mov dword [ebp - 0x5c], ebx
call fcn.100ae431
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp eax, ebx
je 0x10020ee3
add eax, 2
add dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 0x40]
jl 0x1002120b
add eax, 0x10000
push eax
call fcn.100c6c30
push dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
push dword [esi + 0x10]
push eax
call fcn.100ab860
mov eax, dword [esi + 0x14]
push dword [esi + 0x10]
add eax, 0x10000
mov dword [ebp - 0x40], eax
call fcn.100c6c35
mov eax, dword [ebp - 0x58]
add esp, 0x14
mov dword [esi + 0x10], eax
mov dword [ebp - 0x30], ebx
dec dword [ebp - 0x28]
inc dword [ebp - 0x38]
jmp 0x10020e9b
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 0x28]
jne 0x10020e9b
sub dword [ebp - 0x28], 2
add eax, 0xfffffffe
push 0x14
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x30], edi
call fcn.100ab720
add esp, 0xc
jmp 0x10020e98