Function at 0x41b289
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4528d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
mov dword [esp + 0xc], esi
call fcn.0041bec0
cmp dword [edi + 0x250], esi
jne 0x41b318
push 0x4585d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x45842a
call fcn.0040162e
lea eax, [esp + 0x168]
push eax
push edi
call fcn.0041c678
push eax
xor ebx, ebx
lea eax, [esp + 0x134]
mov dword [esp + 0x194], esi
inc ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.00402fff
add esp, 0xc
mov dword [esp + 0x18c], ebx
mov dword [esp + 0xc], 3
jmp 0x41b321
xor ebx, ebx
lea eax, [edi + 0x23c]
inc ebx
push eax
lea ecx, [esp + 0x88]
call fcn.00401650
push 2
pop eax
mov dword [esp + 0x18c], eax
test byte [esp + 0xc], al
je 0x41b351
and dword [esp + 0xc], 0xfffffffd
push esi
push ebx
lea ecx, [esp + 0x134]
call fcn.004017a5
mov byte [esp + 0x18c], 4
test byte [esp + 0xc], bl
je 0x41b36d
push esi
push ebx
lea ecx, [esp + 0x150]
call fcn.004017a5
mov eax, edi
call fcn.0041b15f
test al, al
jne 0x41b381
call fcn.0041b178
test eax, eax
jne 0x41b38a
cmp byte [edi + 0xef], 0
je 0x41b3b6
mov edi, 0x1a4
push esi
push ebx
lea ecx, [esp + 0x8c]
call fcn.004017a5
mov ecx, dword [esp + 0x184]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esp + 0x9c], 0x10
mov ebx, dword [edi + 0xe8]
mov eax, dword [esp + 0x88]
jae 0x41b3d4
lea eax, [esp + 0x88]
push dword [esp + 0x98]
push eax
call fcn.00421cc9
lea eax, [esp + 0xa0]
push eax
mov eax, edi
call fcn.0041c993
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea esi, [edi + 0x25c]
push eax
mov ecx, esi
mov byte [esp + 0x198], 5
call fcn.004016f1
push ebx
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x194], 4
call fcn.004017a5
push edi
mov ecx, esi
call fcn.0041c9b2
mov eax, dword [edi + 0x230]
cmp eax, 0xc8
je 0x41b536
cmp eax, 0xce
je 0x41b536
cmp eax, 0x12b
jle 0x41b857
cmp eax, 0x131
jle 0x41b463
cmp eax, 0x133
jne 0x41b857
push str.LOCATION
lea ecx, [esp + 0xc0]
call fcn.0040162e
lea eax, [esp + 0xbc]
push eax
lea ecx, [edi + 0x20c]
mov byte [esp + 0x190], 0x10
call fcn.004041bb
push eax
lea ecx, [esp + 0x18]
call fcn.00401650
push ebx
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x194], 0x12
call fcn.004017a5
cmp dword [esp + 0x28], ebx
jbe 0x41b52a
sub esp, 0x1c
mov dword [esp + 0x28], esp
mov esi, esp
sub esp, 0x1c
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.00401650
sub esp, 0x1c
lea eax, [edi + 4]
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
mov byte [esp + 0x1e4], 0x13
call fcn.00401650
push esi
mov byte [esp + 0x1e4], 0x12
call fcn.0041d651
lea eax, [esp + 0x180]
push eax
call fcn.0041d5b9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 4]
mov byte [esp + 0x198], 0x14
call fcn.004016f1
push ebx
push 1
lea ecx, [esp + 0x16c]
call fcn.004017a5
push ebx
push 1
lea ecx, [esp + 0x1c]
jmp 0x41b852
push str.CONTENT_LENGTH
lea ecx, [esp + 0xdc]
call fcn.0040162e
lea eax, [esp + 0xd8]
lea ecx, [edi + 0x20c]
push eax
mov byte [esp + 0x190], 6
call fcn.004041bb
push eax
lea ecx, [esp + 0x34]
call fcn.00401650
push ebx
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x194], 8
call fcn.004017a5
cmp dword [esp + 0x44], ebx
jbe 0x41b5e4
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x41b598
lea eax, [esp + 0x34]
push eax
call fcn.0043bff6
pop ecx
mov ecx, eax
add ecx, dword [edi + 0xf0]
mov eax, dword [ebp + 0xc]
adc edx, dword [edi + 0xf4]
cmp dword [esp + 0x48], 0x10
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
jae 0x41b5c4
lea eax, [esp + 0x34]
push eax
lea esi, [edi + 0xf8]
call fcn.0043bff6
add dword [esi], eax
pop ecx
mov byte [edi + 0xed], bl
adc dword [esi + 4], edx
mov byte [edi + 0x234], bl
jmp 0x41b5f3
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [edi + 0xed], 1
push str.TRANSFER_ENCODING
lea ecx, [esp + 0x114]
call fcn.0040162e
lea eax, [esp + 0x110]
lea esi, [edi + 0x20c]
push eax
mov ecx, esi
mov byte [esp + 0x190], 9
call fcn.004041bb
push eax
lea ecx, [esp + 0x18]
call fcn.00401650
push ebx
push 1
lea ecx, [esp + 0x118]
mov byte [esp + 0x194], 0xb
call fcn.004017a5
cmp dword [esp + 0x28], ebx
je 0x41b689
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x41b657
lea eax, [esp + 0x18]
push 7
push str.chunked
push eax
call fcn.0043bf43
add esp, 0xc
test eax, eax
jne 0x41b689
push 0x45a184
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0xc
mov byte [edi + 0x234], 1
jmp 0x41b68f
mov byte [edi + 0x234], bl
cmp dword [edi + 0xc4], ebx
je 0x41b6a9
cmp dword [edi + 0x22c], ebx
jne 0x41b6a9
mov dword [edi + 0x230], 0x1bc
push str.CONTENT_DISPOSITION
lea ecx, [esp + 0xf8]
call fcn.0040162e
lea eax, [esp + 0xf4]
push eax
mov ecx, esi
mov byte [esp + 0x190], 0xc
call fcn.004041bb
push eax
lea ecx, [esp + 0x6c]
call fcn.00401650
push ebx
push 1
lea ecx, [esp + 0xfc]
mov byte [esp + 0x194], 0xe
call fcn.004017a5
cmp dword [esp + 0x7c], ebx
jbe 0x41b782
cmp dword [esp + 0x80], 0x10
mov eax, dword [esp + 0x6c]
jae 0x41b70e
lea eax, [esp + 0x6c]
push str.filename
push eax
call fcn.0043d300
pop ecx
pop ecx
cmp eax, ebx
je 0x41b782
add eax, 9
jmp 0x41b725
inc eax
cmp byte [eax], 0x20
je 0x41b724
cmp byte [eax], 0x22
jne 0x41b730
inc eax
cmp byte [eax], 0x2f
jne 0x41b736
inc eax
mov ecx, eax
lea edx, [ecx + 1]
xor esi, esi
mov dword [esp + 0xc], edx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41b741
sub ecx, dword [esp + 0xc]
je 0x41b779
mov cl, byte [esi + eax]
cmp cl, 0x3b
je 0x41b776
cmp cl, 0x22
je 0x41b776
mov ecx, eax
lea edx, [ecx + 1]
inc esi
mov dword [esp + 0xc], edx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41b765
sub ecx, dword [esp + 0xc]
cmp esi, ecx
jb 0x41b74e
jmp 0x41b779
mov byte [esi + eax], bl
mov ecx, dword [ebp + 8]
push eax
call fcn.00401782
push str.CONNECTION
lea ecx, [esp + 0xa4]
call fcn.0040162e
lea eax, [esp + 0xa0]
push eax
lea ecx, [edi + 0x20c]
mov byte [esp + 0x190], 0xf
call fcn.004041bb
push eax
lea ecx, [esp + 0x50]
call fcn.00401650
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xa8]
call fcn.004017a5
cmp dword [esp + 0x60], ebx
jbe 0x41b824
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x41b7de
lea eax, [esp + 0x50]
push 0xa
push str.keep_alive
push eax
call fcn.0043bf43
add esp, 0xc
test eax, eax
jne 0x41b7f9
mov byte [edi + 0xee], 1
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x41b808
lea eax, [esp + 0x50]
push 5
push str.close
push eax
call fcn.0043bf43
add esp, 0xc
test eax, eax
jne 0x41b82b
mov byte [edi + 0xee], bl
jmp 0x41b82b
mov byte [edi + 0xee], 1
push ebx
push esi
lea ecx, [esp + 0x54]
call fcn.004017a5
push ebx
push esi
lea ecx, [esp + 0x70]
call fcn.004017a5
push ebx
push esi
lea ecx, [esp + 0x1c]
call fcn.004017a5
push ebx
push esi
lea ecx, [esp + 0x38]
call fcn.004017a5
xor ebx, ebx
mov byte [edi + 0xec], 1
mov edi, dword [edi + 0x230]
inc ebx
xor esi, esi
jmp 0x41b38f