Function at 0x47f290
Capabilities:
Check http status code
Create http request
Get http content length

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov eax, ebp
mov byte [esp + 0x16], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 4
call fcn.0047ea70
test al, al
jne 0x47f2c3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [ebp + 0x250]
push 0
shr eax, 1
push 0
and al, 1
push 0
mov byte [esp + 0x23], al
mov eax, dword [ebp + 0x254]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x47f4e8
mov eax, dword [ebp + 0x248]
test eax, eax
jle 0x47f346
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push 4
lea ecx, [esp + 0x1c]
push ecx
push 2
push ebx
mov dword [esp + 0x28], eax
call esi
push 4
lea edx, [esp + 0x1c]
push edx
push 5
push ebx
call esi
push 4
lea eax, [esp + 0x1c]
push eax
push 6
push ebx
call esi
push 4
lea ecx, [esp + 0x1c]
push ecx
push 7
push ebx
call esi
push 4
lea edx, [esp + 0x1c]
push edx
push 8
push ebx
call esi
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x47f355
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24c]
push 0
push ecx
push 0
push 0
add eax, 4
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x47f4da
mov ecx, dword [ebp + 0x25c]
test ecx, ecx
je 0x47f3c0
mov eax, 0x1000
xor edi, edi
mov dword [esp + 0x24], eax
call fcn.0041b110
mov edx, dword [esp + 0x24]
push edx
mov edi, eax
push 0
push edi
call fcn.004cd250
add esp, 0xc
push 0
lea eax, [esp + 0x28]
push eax
push edi
push 0x15
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x47f4cf
mov ecx, dword [ebp + 0x24c]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
test ecx, 0x200000
je 0x47f407
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea eax, [ebp + 0x264]
push ebx
lea esi, [esp + 0x28]
mov ecx, ebp
call fcn.0047ff90
mov esi, dword [esp + 0x24]
add esp, 0xc
test al, al
jmp 0x47f41d
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push 0x20000013
push esi
call edi
test eax, eax
je 0x47f4cf
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x47f44f
cmp eax, 0x130
je 0x47f456
cmp eax, 0x194
jne 0x47f4cf
mov dword [ebp + 0x264], 4
jmp 0x47f4cf
cmp eax, 0x130
jne 0x47f46a
mov dword [ebp + 0x264], 1
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
push 0x20000005
push esi
call edi
test eax, eax
jne 0x47f488
mov dword [esp + 0x20], eax
jmp 0x47f48c
mov eax, dword [esp + 0x20]
mov byte [esp + 0x18], 0
test eax, eax
jle 0x47f49c
mov byte [esp + 0x18], 1
jmp 0x47f4a1
mov eax, 0x4000
cmp byte [esp + 0x17], 0
jne 0x47f4ba
mov ecx, dword [esp + 0x18]
push ecx
push esi
mov edi, ebp
call fcn.0047ead0
add esp, 8
jmp 0x47f4cb
mov edx, dword [esp + 0x18]
push edx
push eax
push ebp
mov edx, esi
call fcn.0047efd0
add esp, 0xc
mov byte [esp + 0x16], al
test esi, esi
je 0x47f4da
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [esp + 0x16], 0
jne 0x47f4f2
mov dword [ebp + 0x260], 0
mov al, byte [esp + 0x16]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret