Function at 0x35838d
Capabilities:
Check http status code

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
lea eax, [ebp - 0x30]
push eax
push 3
push 0xc0000000
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
call dword [0x32138c]
mov dword [ebp - 8], eax
mov ebx, 0x80070000
cmp eax, esi
je 0x3583e3
cmp eax, 0xffffffff
jne 0x3583fe
call dword [0x321414]
cmp eax, esi
jle 0x3583f4
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x358580
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [0x32143c]
test eax, eax
jne 0x35842a
call dword [0x321414]
cmp eax, esi
jle 0x358420
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x358580
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0032ce3f
mov edi, eax
cmp edi, esi
jl 0x358580
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push esi
push dword [ebp + 0x10]
push 0x3297ac
push dword [ebp + 8]
call fcn.0035812d
mov edi, eax
cmp edi, esi
jl 0x35855c
push 0x1000
push esi
call dword [fcn.003214a0]
push eax
call dword [fcn.0032149c]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x358491
mov edi, 0x8007000e
jmp 0x35855c
push esi
lea eax, [ebp + 0xc]
push eax
push 0x1000
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [0x321368]
test eax, eax
jne 0x3584c6
call dword [0x321414]
cmp eax, esi
jle 0x3584bc
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x35855c
cmp dword [ebp + 0xc], esi
jbe 0x3584fe
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [0x3215c4]
test eax, eax
jne 0x3584f9
call dword [0x321414]
cmp eax, esi
jle 0x3584f3
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x35855c
cmp dword [ebp + 0xc], esi
ja 0x358491
push esi
push dword [ebp - 4]
call dword [0x3215c0]
test eax, eax
jne 0x358523
call dword [0x321414]
cmp eax, esi
jle 0x35851d
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x35855c
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0xc], 4
push esi
push 0x20000013
push dword [ebp - 4]
call dword [0x3215bc]
test eax, eax
je 0x358549
xor edi, edi
jmp 0x35855c
call dword [0x321414]
cmp eax, esi
jle 0x35855a
and eax, 0xffff
or eax, ebx
mov edi, eax
mov ebx, dword [0x3215b8]
cmp dword [ebp - 0x10], esi
je 0x35856c
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x14], esi
je 0x358576
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 4], esi
je 0x358580
push dword [ebp - 4]
call ebx
cmp dword [ebp - 8], esi
je 0x358594
cmp dword [ebp - 8], 0xffffffff
je 0x358594
push dword [ebp - 8]
call dword [0x321388]
cmp dword [ebp - 0xc], esi
je 0x3585aa
push dword [ebp - 0xc]
push esi
call dword [fcn.003214a0]
push eax
call dword [fcn.003214a4]
cmp edi, esi
jl 0x3585be
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0xc8
je 0x3585be
xor eax, eax
inc eax
jmp 0x3585c0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10