Function at 0x40b701
Capabilities:
Check http status code

Disassembly:
sub esp, 0x2ec
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2fc]
lea eax, [esp + 0x34]
push edi
push 0x3c
xor ebp, ebp
xor ebx, ebx
and dword [esp + 0x24], ebx
mov edi, 0x4600300
push ebp
push eax
call fcn.0040de4d
add esp, 0xc
mov dword [esp + 0x38], 0x3c
lea eax, [esp + 0x1f8]
mov ecx, 0x104
mov dword [esp + 0x48], eax
lea eax, [esp + 0xf4]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x54], eax
lea eax, [esp + 0xb4]
push 0x40
mov dword [esp + 0x60], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x6c], ecx
pop ecx
push eax
push 0x10000000
push ebp
lea eax, [esi + 0x924]
mov dword [esp + 0x64], ecx
push eax
mov dword [esp + 0x70], ecx
call dword [esi + 0xbc]
or eax, eax
je 0x40baac
sub eax, eax
cmp dword [esp + 0x44], 4
sete al
mov dword [esp + 0x18], eax
mov eax, 0x4e03300
cmove edi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], edi
call dword [esi + 0xc0]
mov dword [esp + 0x34], eax
or eax, eax
je 0x40baac
sub ecx, ecx
push ecx
push ecx
push 3
push ecx
push ecx
push dword [esp + 0x64]
lea ecx, [esp + 0x210]
push ecx
push eax
call dword [esi + 0xc4]
mov dword [esp + 0x30], eax
test eax, eax
je 0x40ba4c
sub edx, edx
cmp dword [esp + 0x68], ebx
jne 0x40b804
mov word [esp + 0xf4], 0x2f
push edx
push edi
push edx
push edx
push edx
lea ecx, [esp + 0x108]
push ecx
push edx
push eax
call dword [esi + 0xd8]
push eax
pop edi
or edi, edi
je 0x40ba42
cmp dword [esp + 0x18], ebx
je 0x40b84b
test dword [esp + 0x28], 0x1000
je 0x40b84b
push 4
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x3380
push eax
push 0x1f
push edi
call dword [esi + 0xc8]
cmp dword [esp + 0x58], ebx
je 0x40b864
push dword [esp + 0x58]
push dword [esp + 0x58]
push 0x1c
push edi
call dword [esi + 0xc8]
push eax
pop ebp
cmp dword [esp + 0x60], ebx
je 0x40b87d
push dword [esp + 0x60]
push dword [esp + 0x60]
push 0x1d
push edi
call dword [esi + 0xc8]
mov ebp, eax
sub eax, eax
push eax
push eax
push eax
push eax
push edi
call dword [esi + 0xdc]
or eax, eax
je 0x40ba3b
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
push eax
lea eax, [esp + 0x28]
push eax
push 0x20000013
push edi
call dword [esi + 0xe0]
test eax, eax
je 0x40ba3b
cmp dword [esp + 0x20], 0xc8
jne 0x40ba3b
and dword [esp + 0x10], ebx
lea eax, [esp + 0x1c]
push 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 4
push eax
push 0x20000005
push edi
call dword [esi + 0xe0]
test eax, eax
jne 0x40b9a2
call dword [esi + 0x8c]
cmp eax, 0x2f76
jne 0x40ba3b
xor eax, eax
push eax
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [esi + 0xd4]
or eax, eax
je 0x40ba3b
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40b98e
mov edx, dword [esi + 0x84]
test ebx, ebx
jne 0x40b93e
push ecx
push 1
call edx
push eax
call dword [esi + 0x7c]
jmp 0x40b951
mov eax, dword [esp + 0x10]
add eax, ecx
push eax
push ebx
push 1
call edx
push eax
call dword [esi + pe_nt_image_headers32]
mov ebx, eax
test ebx, ebx
je 0x40ba3b
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add eax, ebx
push eax
push edi
call dword [esi + 0xcc]
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push 0
push 0
push eax
push edi
call dword [esi + 0xd4]
or eax, eax
jne 0x40b921
lea eax, [esi + 0x84]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x40ba3b
jmp 0x40b9e6
cmp dword [esp + 0x10], ebx
je 0x40ba3b
push dword [esp + 0x10]
lea eax, [esi + 0x84]
push 1
call dword [eax]
push eax
call dword [esi + 0x7c]
mov ebx, eax
or ebx, ebx
je 0x40ba3b
and dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [esi + 0xcc]
push eax
pop ebp
lea eax, [esi + 0x84]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
je 0x40ba3b
push 4
push 0x3000
push dword [esp + 0x18]
push 0
call dword [esi + 0x3c]
mov dword [esi + 0xd60], eax
test eax, eax
je 0x40ba1a
push dword [esp + 0x10]
push ebx
push eax
call fcn.0040de29
sub ebp, ebp
add esp, 0xc
inc ebp
jmp 0x40ba1c
xor ebp, ebp
push dword [esp + 0x10]
push 0
push ebx
call fcn.0040de4d
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push 1
call dword [eax]
push eax
call dword [esi + 0x88]
push edi
call dword [esi + 0xd0]
push dword [esp + 0x30]
call dword [esi + 0xd0]
push dword [esp + 0x34]
call dword [esi + 0xd0]
or ebp, ebp
je 0x40baa8
cmp dword [esi + 0x234], 3
jne 0x40baa8
push dword [esi + 0xd58]
mov edi, dword [esi + 0xd60]
lea eax, [esi + 0xd48]
push edi
push eax
lea eax, [esi + 0xd38]
push eax
call fcn.0040db21
push dword [esi + 0x2c]
lea eax, [esi + 0xc2c]
push dword [esi + 0x28]
push eax
call fcn.0040d9f7
add esp, 0x1c
cmp eax, dword [edi + 0x518]
jne 0x40baac
cmp edx, dword [edi + 0x51c]
jne 0x40baac
mov eax, ebp
jmp 0x40baae
sub eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret