Function at 0x415840
Capabilities:
Check http status code
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51861e
mov eax, dword fs:[0]
push eax
mov eax, 0x2488
call fcn.004ecad0
mov eax, dword [0x587978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [esi + 0x14]
push edi
call fcn.00411c00
lea ecx, [ebp - 0x247c]
call fcn.0040b230
mov ecx, dword [str.http]
push 4
push ecx
lea edx, [ebp - 0x247c]
mov eax, 0x50
push 0x21
push edx
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 4
mov word [ebp - 0x30], ax
call fcn.0040b170
mov edi, dword [edi]
add esp, 0x10
push 0
push edi
lea ecx, [ebp - 0x247c]
call fcn.00411e20
test eax, eax
jne 0x4158dd
mov eax, 0x2ee5
jmp 0x415b6d
lea eax, [ebp - 0x243a]
push eax
lea ecx, [ebp - 0x2484]
call fcn.00409590
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 3
movzx eax, word [ebp - 0x30]
mov edi, dword [esi + 0x20]
jne 0x415909
or edi, 0x800000
push eax
lea ecx, [ebp - 0x2484]
push ecx
mov ecx, esi
call fcn.0040ca90
lea edx, [ebp - 0x2034]
push edx
lea ecx, [ebp - 0x2480]
mov dword [ebp - 0x2488], eax
call fcn.00409590
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1032]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415940
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1032]
push eax
lea ecx, [ebp - 0x2480]
call fcn.0040f910
cmp dword [ebp - 0x2488], 0
je 0x4159c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2480]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415993
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2484]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4159b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2488]
jmp 0x415b6d
push 0x530e54
lea ecx, [ebp - 0x248c]
call fcn.00409590
mov byte [ebp - 4], 4
push str.HEAD
lea ecx, [ebp - 0x2488]
call fcn.00409590
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
push 0
push 0
push edi
push 0
lea edx, [ebp - 0x248c]
push edx
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x2480]
push ecx
lea edx, [ebp - 0x2488]
push edx
mov ecx, esi
call fcn.00413f40
mov edi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415a3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x248c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415a63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x415ab5
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2480]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415a8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2484]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x415aae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x415b6d
mov eax, dword [esi + 0x2c]
push 0
lea ecx, [ebp - 0x2494]
push ecx
lea edx, [ebp - 0x2490]
push edx
push 0
push 0x20000013
push eax
mov dword [ebp - 0x2490], 0
mov dword [ebp - 0x2494], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x415b17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2480]
call fcn.00406ef0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2484]
call fcn.00406ef0
mov eax, esi
jmp 0x415b6d
mov ecx, esi
call fcn.004154e0
cmp dword [ebp - 0x2490], 0xc8
je 0x415b4e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2480]
call fcn.00406ef0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2484]
call fcn.00406ef0
mov eax, 0x2f78
jmp 0x415b6d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2480]
call fcn.00406ef0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2484]
call fcn.00406ef0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eb16b
mov esp, ebp
pop ebp
ret 0xc