Function at 0x40c939
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3c44
call fcn.0041700e
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
or dword [ebp - 0x3b6c], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x28]
push esi
mov dword [ebp - 0x3ba0], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x3b80], eax
lea edi, [ebp - 0x3c08]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3b68], eax
xor eax, eax
push 8
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3b64], eax
mov dword [ebp - 0x3bc8], eax
mov dword [ebp - 0x3b9c], eax
mov dword [ebp - 0x3b74], eax
mov dword [ebp - 0x3b84], eax
mov dword [ebp - 0x3b58], eax
mov dword [ebp - 0x3b70], eax
mov dword [ebp - 0x3b7c], eax
inc eax
movlpd qword [ebp - 0x3bc0], xmm0
mov dword [ebp - 0x3bcc], 0x100
mov dword [ebp - 0x3c08], 0x20
mov dword [ebp - 0x3c04], eax
call fcn.0040a8f4
mov eax, dword [0x42e88c]
lea edx, [ebp - 0x3b64]
push edx
push 0x425c54
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x40d585
mov esi, 0x25f8
lea eax, [ebp - 0x3b54]
push esi
push 0
push eax
call 0x417a73
mov edi, dword [ebp - 0x3b80]
lea ecx, [ebp - 0x3b54]
add esp, 0xc
mov dword [ebp - 0x3b54], esi
mov dword [ebp - 0x3b50], 0x4000000
mov eax, dword [edi]
push ecx
push ebx
push 0
push edi
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
js 0x40d585
mov eax, dword [edi]
push edi
call dword [eax + 0x18]
test eax, eax
je 0x40ca5c
mov esi, 0x80004004
jmp 0x40d585
push dword [ebp - 0x3ba0]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 0x3b98], eax
lea eax, [ebp - 0x3bcc]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [0x425030]
mov ebx, dword [ebp - 0x3ba0]
lea eax, [ebp - 0x104]
mov dword [ebp - 0x3c00], eax
lea eax, [ebp - 0x3c08]
push eax
push ebx
call dword [0x42e004]
mov ecx, dword [ebp - 0x3b9c]
test eax, eax
push 1
pop eax
push ebx
cmovne ecx, eax
push 0
mov dword [ebp - 0x3b9c], ecx
call dword [0x425010]
mov ebx, dword [0x425078]
test eax, eax
jne 0x40cae1
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40d585
mov ecx, dword [ebp - 0x3b98]
xor edx, edx
inc edx
mov dword [ebp - 0x3bc8], edx
cmp ecx, 2
je 0x40d18a
cmp ecx, 3
je 0x40d18a
cmp ecx, 4
jne 0x40d180
push 0x38
lea eax, [ebp - 0x3c40]
mov dword [ebp - 0x3b78], 0x824
add byte [edx], ch
call ebx
movzx esi, ax
mov edi, 0x80070000
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40d585
jmp 0x40cba1
mov edi, 0x80070000
lea eax, [ebp - 0x3b78]
push eax
mov esi, 0x8007000f
jmp 0x40d585
mov eax, 0x8000080
cmp ecx, 2
jne 0x40d19d
cmp dword [0x42e898], 0
je 0x40d1ab
cmp ecx, 3
jne 0x40d1b0
cmp dword [0x42e8a0], 0
jne 0x40d1b0
mov eax, 0x28000080
push 0
push eax
push 3
push 0
push edx
push 0x80000000
lea eax, [ebp - 0x25a4]
push eax
call dword [0x4250dc]
mov dword [ebp - 0x3b6c], eax
cmp eax, 0xffffffff
jne 0x40d1f3
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40d585
mov eax, dword [ebp - 0x3b6c]
lea ecx, [ebp - 0x3bb8]
push ecx
push eax
call fcn.00414b32
mov esi, eax
test esi, esi
js 0x40d585
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x40d244
mov eax, dword [ebp - 0x3bb4]
cmp eax, dword [ecx + 4]
jb 0x40d373
jne 0x40d230
mov eax, dword [ebp - 0x3bb8]
cmp eax, dword [ecx]
jbe 0x40d373
mov eax, dword [edi]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push edi
call dword [eax + 0x50]
xorps xmm0, xmm0
movlpd qword [ebp + 0x10], xmm0
lea eax, [ebp - 0x3bc0]
push eax
push dword [ebp - 0x3b6c]
call fcn.0041397c
mov esi, eax
test esi, esi
js 0x40d585
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test edx, edx
jl 0x40d2a1
jg 0x40d270
test edi, edi
je 0x40d2a1
push 0
push 0
push edx
push edi
push dword [ebp - 0x3b6c]
call dword [0x425118]
test eax, eax
jne 0x40d29e
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40d585
xor edi, edi
cmp dword [ebp + 0x24], edi
jbe 0x40d3a8
mov eax, dword [ebp - 0x3b68]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 3
push dword [eax + edi*4]
push dword [ebp - 0x3b64]
call fcn.00412f60
mov esi, eax
test esi, esi
js 0x40d585
inc edi
cmp edi, dword [ebp + 0x24]
jb 0x40d37a
xor esi, esi
mov edi, esi
jmp 0x40d58b