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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51839e
mov eax, dword fs:[0]
push eax
mov eax, 0x2488
call fcn.004ec8a0
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.00411920
lea ecx, [ebp - 0x247c]
call fcn.0040b250
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.0040b190
mov edi, dword [edi]
add esp, 0x10
push 0
push edi
lea ecx, [ebp - 0x247c]
call fcn.00411b40
test eax, eax
jne 0x4155ed
mov eax, 0x2ee5
jmp 0x41587d
lea eax, [ebp - 0x243a]
push eax
lea ecx, [ebp - 0x2484]
call fcn.004095e0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 3
movzx eax, word [ebp - 0x30]
mov edi, dword [esi + 0x20]
jne 0x415619
or edi, 0x800000
push eax
lea ecx, [ebp - 0x2484]
push ecx
mov ecx, esi
call fcn.0040c8c0
lea edx, [ebp - 0x2034]
push edx
lea ecx, [ebp - 0x2480]
mov dword [ebp - 0x2488], eax
call fcn.004095e0
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 0x415650
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1032]
push eax
lea ecx, [ebp - 0x2480]
call fcn.0040f630
cmp dword [ebp - 0x2488], 0
je 0x4156d0
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 0x4156a3
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 0x4156c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2488]
jmp 0x41587d
push 0x530e54
lea ecx, [ebp - 0x248c]
call fcn.004095e0
mov byte [ebp - 4], 4
push str.HEAD
lea ecx, [ebp - 0x2488]
call fcn.004095e0
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.00413c60
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 0x41574e
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 0x415773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x4157c5
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 0x41579c
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 0x4157be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x41587d
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 0x415827
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2480]
call fcn.004064c0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2484]
call fcn.004064c0
mov eax, esi
jmp 0x41587d
mov ecx, esi
call fcn.004151f0
cmp dword [ebp - 0x2490], 0xc8
je 0x41585e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2480]
call fcn.004064c0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2484]
call fcn.004064c0
mov eax, 0x2f78
jmp 0x41587d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2480]
call fcn.004064c0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2484]
call fcn.004064c0
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.004eaf3b
mov esp, ebp
pop ebp
ret 0xc