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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4537c1
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x469424]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x469424]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x10], 0
jne 0x411999
lea eax, [edi + 0x1c]
push eax
call fcn.00410ae0
test eax, eax
jne 0x4119db
mov byte [edi + 0x10], 1
mov esi, dword [edi + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ebx, edx
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
mov ecx, esi
call eax
cmp ebx, edx
jb 0x4119fa
ja 0x4119bf
cmp dword [esp + 0x1c], eax
jbe 0x4119fa
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx]
call eax
sub esi, eax
mov dword [edi + 0x14], esi
jmp 0x411a01
lea esi, [edi + 0x98]
call fcn.00410800
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 8], eax
jmp 0x411e8c
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
mov eax, dword [ecx]
push edx
mov edx, dword [eax]
call edx
push edx
push eax
lea ecx, [edi + 0x1c]
call fcn.00410bb0
mov ebx, eax
test ebx, ebx
jge 0x411a42
lea esi, [edi + 0x98]
call fcn.00410800
mov eax, dword [edi + 0x18]
mov byte [edi + 0x10], 0
mov dword [eax + 4], ebx
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], 0xffffffff
jmp 0x411e8c
mov eax, dword [edi + 0xa0]
cmp eax, 0xffffffff
lea ebx, [edi + 0x98]
mov dword [esp + 0x18], 0
je 0x411e4e
push 0
push 0x400
lea edx, [esp + 0x64]
push edx
push eax
call dword [0x4555e8]
mov esi, eax
xor eax, eax
cmp esi, eax
jle 0x411e4e
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], al
mov dword [esp + 0x470], eax
lea eax, [esp + 0x24]
push eax
mov edx, esi
lea ecx, [esp + 0x60]
call fcn.00410d10
test al, al
jne 0x411ae7
mov esi, ebx
call fcn.00410800
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
mov byte [edi + 0x10], 0
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 8], eax
cmp dword [esp + 0x3c], 0x10
mov dword [edi + 0x18], 0
jb 0x411e93
mov eax, dword [esp + 0x28]
push eax
call fcn.0041edce
add esp, 4
jmp 0x411e93
cmp dword [edi + 0x14], 0
jne 0x411b5b
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0x470], 1
mov ecx, dword [esp + 0x28]
mov ebx, 0x10
cmp dword [esp + 0x3c], ebx
jae 0x411b1d
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push edx
mov edx, str.Content_Length:
call fcn.00410d70
test al, al
je 0x411b4a
cmp dword [esp + 0x58], ebx
mov eax, dword [esp + 0x44]
jae 0x411b3e
lea eax, [esp + 0x44]
push eax
call fcn.0043b810
add esp, 4
mov dword [edi + 0x14], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x470], 0
call fcn.00401930
cmp dword [esp + 0x3c], 0x10
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
jae 0x411b76
lea ecx, [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00410ef0
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
je 0x411cd3
cmp eax, 0xce
je 0x411cd3
cmp eax, 0x12e
jne 0x411c84
lea esi, [edi + 0x98]
call fcn.00410800
push 0x45ad40
lea ecx, [esp + 0x44]
mov byte [edi + 0x10], 0
call fcn.004018f0
mov byte [esp + 0x470], 2
mov ecx, dword [esp + 0x28]
mov ebx, 0x10
cmp dword [esp + 0x3c], ebx
jae 0x411bde
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push edx
mov edx, str.Location:
call fcn.00410d70
test al, al
je 0x411c09
cmp dword [esp + 0x58], ebx
mov ecx, dword [esp + 0x44]
jae 0x411bff
lea ecx, [esp + 0x44]
push edi
call fcn.00411ec0
test al, al
jne 0x411c3b
mov eax, dword [edi + 0x18]
mov dword [eax + 4], 0x12e
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], 0xffffffff
mov dword [edi + 0x18], 0
lea ecx, [esp + 0x40]
call fcn.00401930
lea ecx, [esp + 0x24]
call fcn.00401930
jmp 0x411e93
cmp dword [edi + 0x144], ebx
lea esi, [edi + 0x12c]
jb 0x411c4e
mov edx, dword [esi + 4]
jmp 0x411c51
lea edx, [esi + 4]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411c56
sub eax, ebx
push eax
push edx
lea ecx, [edi + 0x7c]
call fcn.00401b50
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.004019c0
mov ecx, edi
call fcn.00411940
jmp 0x411c24
push eax
push str.HTTP
push 2
call fcn.0040ed90
mov ecx, eax
call fcn.0040f030
add esp, 0xc
lea esi, [edi + 0x98]
call fcn.00410800
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
mov byte [edi + 0x10], 0
mov dword [edx + 4], eax
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [edi + 0x18], 0
call fcn.00401930
jmp 0x411e93
mov edx, dword [edi + 0x18]
sub esi, ebx
test esi, esi
mov dword [edx + 4], eax
jle 0x411cff
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push esi
lea edx, [esp + ebx + 0x60]
push edx
push 0
push 0
call eax
mov eax, dword [esp + 0x14]
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x411d03
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 0x14]
test ecx, ecx
jbe 0x411db1
cmp ebx, ecx
jb 0x411db1
mov ecx, dword [edi + 0x18]
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 8], 2
lea ecx, [esp + 0x24]
mov dword [edi + 0x18], 0
call fcn.00401930
jmp 0x411e93
push 0
push 0x400
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [0x4555e8]
mov edx, dword [edi + 0x128]
push 0
push edx
mov esi, eax
call dword [0x4552e8]
test eax, eax
je 0x411dc4
cmp eax, 0x80
je 0x411dc4
cmp eax, 0xffffffff
je 0x411dc4
test esi, esi
jle 0x411dfc
mov ecx, dword [edi + 0x18]
push esi
lea edx, [esp + 0x60]
push edx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ebx, dword [esp + 0x18]
mov eax, dword [edi + 0x14]
add ebx, esi
test eax, eax
mov dword [esp + 0x18], ebx
jbe 0x411da1
cmp ebx, eax
jae 0x411dd3
cmp esi, 0x200
jge 0x411db1
push 0xa
call dword [0x4552e4]
mov eax, dword [edi + 0xa0]
cmp eax, 0xffffffff
jne 0x411d3b
or eax, eax
jmp 0x411d4e
lea esi, [edi + 0x98]
call fcn.00410800
mov byte [edi + 0x10], 0
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
mov dword [edx + 4], eax
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], 2
lea ecx, [esp + 0x24]
mov dword [edi + 0x18], 0
call fcn.00401930
jmp 0x411e93
je 0x411dc4
call dword [0x4555c8]
lea esi, [edi + 0x98]
mov ebx, eax
call fcn.00410800
cmp ebx, 0x2745
mov byte [edi + 0x10], 0
jne 0x411e22
or eax, 0xffffffff
jmp 0x411e30
xor eax, eax
cmp ebx, 0x274c
setne al
add eax, 0xfffffffe
mov edx, dword [edi + 0x18]
mov dword [edx + 4], ebx
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x24]
mov dword [edi + 0x18], 0
call fcn.00401930
jmp 0x411e93
call dword [0x4555c8]
lea esi, [edi + 0x98]
mov ebx, eax
call fcn.00410800
cmp ebx, 0x2745
mov byte [edi + 0x10], 0
jne 0x411e72
or eax, 0xffffffff
jmp 0x411e80
xor eax, eax
cmp ebx, 0x274c
setne al
add eax, 0xfffffffe
mov edx, dword [edi + 0x18]
mov dword [edx + 4], ebx
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], eax
mov dword [edi + 0x18], 0
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00439d55
mov esp, ebp
pop ebp
ret