Function at 0x10031970
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10107008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xf0], ebx
cmp dword [esi + 8], 3
je 0x10031b8d
nop word [eax + eax]
mov eax, dword [esi + 8]
cmp eax, 0x13
je 0x10031c18
and al, 0xf
cmp al, 4
jne 0x10031c3e
mov edi, dword [esi]
cmp byte [edi + 4], al
jne 0x100319c9
movzx ebx, byte [edi + 7]
mov dword [ebp - 0xec], ebx
jmp 0x100319d2
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xec], eax
lea esi, [edi + 0x10]
lea edx, [ebp - 0x114]
mov ecx, esi
call fcn.100227a0
mov edx, eax
test edx, edx
je 0x10031a12
mov eax, dword [ebp - 0x114]
sub edx, esi
mov dword [ebp - 0x10c], eax
inc edx
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], 0x13
jmp 0x10031b65
push str..xXnN
push esi
call fcn.1008efc0
add esp, 8
test eax, eax
je 0x10031a47
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
je 0x10031b63
cmp ebx, 0x78
jne 0x10031a49
lea edx, [ebp - 0xe8]
mov ecx, esi
call fcn.10022560
jmp 0x10031a67
xor ebx, ebx
lea eax, [ebp - 0xe8]
push eax
push esi
call fcn.100921ea
fstp qword [ebp - 0xe4]
movsd xmm0, qword [ebp - 0xe4]
add esp, 8
mov ecx, dword [ebp - 0xe8]
movsd qword [ebp - 0xe4], xmm0
cmp ecx, esi
jne 0x10031a7d
xor edx, edx
jmp 0x10031aaa
movzx eax, byte [ecx]
test byte [eax + 0x100e3511], 8
je 0x10031aa3
nop dword [eax]
inc ecx
mov dword [ebp - 0xe8], ecx
movzx eax, byte [ecx]
test byte [eax + 0x100e3511], 8
jne 0x10031a90
xor edx, edx
cmp byte [ecx], dl
cmove edx, ecx
test edx, edx
jne 0x10031b44
push 0x2e
push esi
call fcn.10084180
mov edx, esi
mov dword [ebp - 0xf8], eax
add esp, 8
lea ecx, [edx + 1]
mov dword [ebp - 0xf4], ecx
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10031ad0
sub edx, dword [ebp - 0xf4]
cmp edx, 0xc8
ja 0x10031b63
test eax, eax
je 0x10031b63
lea edx, [ebp - 0xdc]
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x10031af3
call fcn.1008da48
mov ecx, dword [ebp - 0xf8]
lea edx, [ebp - 0xe4]
sub ecx, esi
push ebx
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp + ecx - 0xdc], al
lea ecx, [ebp - 0xdc]
call fcn.10022730
mov edx, eax
add esp, 4
test edx, edx
je 0x10031b63
lea eax, [ebp - 0xdc]
add edx, 0x10
sub edi, eax
add edx, edi
test edx, edx
je 0x10031b63
movsd xmm0, qword [ebp - 0xe4]
sub edx, esi
movsd qword [ebp - 0x10c], xmm0
inc edx
mov dword [ebp - 0x104], 3
jmp 0x10031b65
xor edx, edx
mov eax, dword [ebp - 0xec]
inc eax
cmp edx, eax
jne 0x10031c3e
cmp dword [ebp - 0x104], 3
lea esi, [ebp - 0x10c]
jne 0x100319a0
mov ebx, dword [ebp - 0xf0]
movsd xmm0, qword [esi]
sub esp, 8
movsd qword [ebp - 0xe4], xmm0
fld qword [ebp - 0xe4]
fstp qword [esp]
call fcn.100c7660
movsd xmm0, qword [esi]
add esp, 8
fstp qword [ebp - 0xe4]
movsd xmm2, qword [ebp - 0xe4]
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jnp 0x10031bdd
mov eax, dword [ebp + 8]
test eax, eax
je 0x10031c3e
cmp eax, 1
jle 0x10031bdd
addsd xmm2, qword [0x100edfa0]
comisd xmm2, xmmword [0x100ee048]
jb 0x10031c3e
movsd xmm1, qword [0x100ee020]
comisd xmm1, xmm2
jbe 0x10031c3e
movaps xmm0, xmm2
call fcn.100c4fc7
mov dword [ebx], eax
mov eax, 1
mov dword [ebx + 4], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10080d10
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xf0]
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10080d10
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10080d10
mov esp, ebp
pop ebp
ret