Function at 0x402be0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
xor eax, eax
push esi
mov dword [esp + 0x30], ecx
mov esi, 0x312c4ad9
mov ebx, dword [esp + 0x30]
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x24]
mov edi, edi
cmp esi, 0x312c4ad9
jg 0x402e60
je 0x402e56
cmp esi, 0x1714460e
jg 0x402d1a
je 0x402fcf
cmp esi, 0x161d514
je 0x402cba
cmp esi, 0x3804105
jne 0x402ca2
mov eax, dword [0x40dcdc]
test eax, eax
jne 0x402c78
mov ecx, 0xb37bd66
call fcn.00403f00
mov edx, 0xb1cc2959
mov ecx, eax
call fcn.00403e60
mov dword [0x40dcdc], eax
push 0
push 0
push 0
push 0
push dword [esp + 0x24]
call eax
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x18], eax
mov esi, 0x290e05a1
mov eax, 0x34cdf7bf
cmovne esi, eax
call fcn.00404220
cmp esi, 0x290e05a1
jne 0x402c20
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [0x40e1e8]
mov dword [esp + 0x28], 4
test eax, eax
jne 0x402ce6
mov ecx, 0xb37bd66
call fcn.00403f00
mov edx, 0x30c1111c
mov ecx, eax
call fcn.00403e60
mov dword [0x40e1e8], eax
push 0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
push ecx
push 0x20000013
push ebx
call eax
test eax, eax
je 0x402f2a
cmp dword [esp + 0x2c], 0xc8
jne 0x402f2a
mov esi, 0x3733f1d1
jmp 0x402c20
cmp esi, 0x22ee02e8
je 0x402d9e
cmp esi, 0x2bddac0a
jne 0x402ca2
test ebp, ebp
je 0x402d44
mov ecx, 0x40d210
call fcn.004034c0
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x402d48
mov esi, dword [esp + 0x1c]
mov eax, dword [0x40dd88]
test eax, eax
jne 0x402d6c
mov ecx, 0xb37bd66
call fcn.00403f00
mov edx, 0xb7e598cf
mov ecx, eax
call fcn.00403e60
mov dword [0x40dd88], eax
push 0
push 0x844cc300
push 0
push 0
push 0
push dword [esp + 0x50]
push esi
push edi
call eax
mov ecx, esi
mov ebx, eax
call fcn.00403460
test ebx, ebx
mov esi, 0x3b13624a
mov eax, 0x399ad3d8
cmovne esi, eax
jmp 0x402c20
mov eax, dword [0x40e494]
mov dword [esp + 0x20], 0x200
test eax, eax
jne 0x402dca
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x7facde30
mov ecx, eax
call fcn.00403e60
mov dword [0x40e494], eax
call eax
mov esi, eax
mov eax, dword [0x40dd18]
test eax, eax
jne 0x402df2
mov ecx, 0x9bab0b12
call fcn.00403f00
mov edx, 0x9ff0609c
mov ecx, eax
call fcn.00403e60
mov dword [0x40dd18], eax
push 0x200
push 8
push esi
call eax
mov esi, eax
test esi, esi
je 0x402e4c
mov eax, dword [0x40e2fc]
test eax, eax
jne 0x402e26
mov ecx, 0x705b7853
call fcn.00403f00
mov edx, 0xa7b8a7b3
mov ecx, eax
call fcn.00403e60
mov dword [0x40e2fc], eax
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
call eax
test eax, eax
jne 0x402e45
sub esp, 8
mov edx, esi
call fcn.004056f0
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.00404220
mov esi, 0x3804105
jmp 0x402c20
mov esi, 0x22ee02e8
jmp 0x402c20
cmp esi, 0x3733f1d1
jg 0x402f34
je 0x402f0d
cmp esi, 0x31d265c4
je 0x402edc
cmp esi, 0x34cdf7bf
jne 0x402ca2
mov eax, dword [0x40dfd0]
test eax, eax
jne 0x402eaa
mov ecx, 0xb37bd66
call fcn.00403f00
mov edx, 0x3e17dfbb
mov ecx, eax
call fcn.00403e60
mov dword [0x40dfd0], eax
push 0
push 0
push 3
push 0
push 0
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x34]
call eax
mov edi, eax
mov esi, 0x1714460e
test edi, edi
mov dword [esp + 0x24], edi
mov eax, 0x2bddac0a
cmovne esi, eax
jmp 0x402c20
mov eax, dword [0x40e258]
test eax, eax
jne 0x402f00
mov ecx, 0xb37bd66
call fcn.00403f00
mov edx, 0x1fa1918a
mov ecx, eax
call fcn.00403e60
mov dword [0x40e258], eax
push ebx
call eax
mov esi, 0x3b13624a
jmp 0x402c20
mov edx, dword [esp + 0x48]
mov ecx, ebx
call fcn.00402980
mov ecx, dword [esp + 0x10]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [esp + 0x10], ecx
mov esi, 0x31d265c4
jmp 0x402c20
cmp esi, 0x399ad3d8
je 0x402f79
cmp esi, 0x3b13624a
jne 0x402ca2
mov eax, dword [0x40e258]
test eax, eax
jne 0x402f6c
mov ecx, 0xb37bd66
call fcn.00403f00
mov edx, 0x1fa1918a
mov ecx, eax
call fcn.00403e60
mov dword [0x40e258], eax
push edi
call eax
mov esi, 0x1714460e
jmp 0x402c20
test ebp, ebp
je 0x402f85
mov esi, dword [ebp + 4]
mov edi, dword [ebp]
jmp 0x402f89
xor esi, esi
xor edi, edi
mov eax, dword [0x40dcb8]
test eax, eax
jne 0x402fad
mov ecx, 0xb37bd66
call fcn.00403f00
mov edx, 0x6efcb66d
mov ecx, eax
call fcn.00403e60
mov dword [0x40dcb8], eax
push esi
push edi
push 0xffffffffffffffff
push dword [esp + 0x4c]
push ebx
call eax
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xcf8f6f50
add esi, 0x31d265c4
jmp 0x402c1a
mov eax, dword [0x40e258]
test eax, eax
jne 0x402ff3
mov ecx, 0xb37bd66
call fcn.00403f00
mov edx, 0x1fa1918a
mov ecx, eax
call fcn.00403e60
mov dword [0x40e258], eax
push dword [esp + 0x18]
call eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret