Function at 0x47fde0
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.0047f5c0
test al, al
jne 0x47fe13
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 0x480038
mov eax, dword [ebp + 0x248]
test eax, eax
jle 0x47fe96
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 0x47fea5
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 0x48002a
mov ecx, dword [ebp + 0x25c]
test ecx, ecx
je 0x47ff10
mov eax, 0x1000
xor edi, edi
mov dword [esp + 0x24], eax
call fcn.0041b2a0
mov edx, dword [esp + 0x24]
push edx
mov edi, eax
push 0
push edi
call fcn.004d3360
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 0x48001f
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 0x47ff57
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea eax, [ebp + 0x264]
push ebx
lea esi, [esp + 0x28]
mov ecx, ebp
call fcn.00480fa0
mov esi, dword [esp + 0x24]
add esp, 0xc
test al, al
jmp 0x47ff6d
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push 0x20000013
push esi
call edi
test eax, eax
je 0x48001f
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x47ff9f
cmp eax, 0x130
je 0x47ffa6
cmp eax, 0x194
jne 0x48001f
mov dword [ebp + 0x264], 4
jmp 0x48001f
cmp eax, 0x130
jne 0x47ffba
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 0x47ffd8
mov dword [esp + 0x20], eax
jmp 0x47ffdc
mov eax, dword [esp + 0x20]
mov byte [esp + 0x18], 0
test eax, eax
jle 0x47ffec
mov byte [esp + 0x18], 1
jmp 0x47fff1
mov eax, 0x4000
cmp byte [esp + 0x17], 0
jne 0x48000a
mov ecx, dword [esp + 0x18]
push ecx
push esi
mov edi, ebp
call fcn.0047f620
add esp, 8
jmp 0x48001b
mov edx, dword [esp + 0x18]
push edx
push eax
push ebp
mov edx, esi
call fcn.0047fb20
add esp, 0xc
mov byte [esp + 0x16], al
test esi, esi
je 0x48002a
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [esp + 0x16], 0
jne 0x480042
mov dword [ebp + 0x260], 0
mov al, byte [esp + 0x16]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret