Function at 0x4ac180
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6dd8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5470b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 1
mov eax, dword [esi]
mov dword [ebp - 0x10], 0
test eax, eax
jne 0x4ac2a3
push ecx
mov esi, esp
mov dword [ebp + 0xc], esp
mov dword [ebp + 0xc], esi
call fcn.004c31da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ac1e5
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.SetLocation:_hINet_is_zero
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x4ac21e
mov edx, ecx
movzx edi, dx
push edi
call fcn.004cb124
test eax, eax
je 0x4ac238
push edi
push eax
mov ecx, esi
call fcn.00424e92
jmp 0x4ac238
push str.SetLocation:_hINet_is_zero
call fcn.004d1e6a
add esp, 4
push eax
push str.SetLocation:_hINet_is_zero
mov ecx, esi
call fcn.00425415
mov byte [ebp - 4], 1
call fcn.004abeb0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ac267
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ac28d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 4
lea ecx, [ebp - 0x14]
push ecx
push 5
push eax
mov dword [ebp - 0x14], 0xea60
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.WININET.dll_InternetOpenUrlW]
push 0
push 0x84000000
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x4ac319
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x4ac319
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0
push 0x84000000
push ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push edx
call edi
push 0x1f4
mov dword [esi + 4], eax
call ebx
cmp dword [esi + 4], 0
je 0x4ac2e4
cmp dword [esi + 4], 0
je 0x4ac3ec
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4ac32f
lea eax, [ebp - 0x18]
mov edi, eax
push 0
lea ecx, [ebp + 0xc]
push ecx
push edi
mov dword [edi], 0
mov edx, dword [esi + 4]
push 0x20000013
push edx
mov dword [ebp + 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4ac36a
cmp dword [edi], 0xc8
jne 0x4ac36a
mov dword [ebp - 0x10], 1
jmp 0x4ac40f
push ecx
mov ecx, dword [edi]
mov eax, esp
mov dword [ebp - 0x10], esp
push ecx
push str.SetLocation:_HttpQueryInfo_failed__return_code:__d
push eax
call fcn.00475230
add esp, 0xc
call fcn.004abeb0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ac3ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ac28d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
push str.SetLocation:_InternetOpenUrl_failed__LE_d
push ecx
call fcn.00475230
add esp, 0xc
call fcn.004abeb0
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ac432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ac458
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc