Function at 0x4ad04182
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0x400
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.wininet.dll_InternetOpenW]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ad0457f
push 0x80000301
push 0
push 0x80000000
push 0x80000301
push 0
push 0x4000000
push 0x80000301
push 0
push 0x400000
push 3
mov ebx, 0xc8
call fcn.4ad1391a
add esp, 0x28
mov dword [ebp - 0x3c], eax
push 0
push dword [ebp - 0x3c]
push 0
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4ad0427b
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.wininet.dll_InternetOpenUrlW]
nop
nop
nop
nop
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ad04572
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrcpynW]
nop
nop
nop
nop
mov dword [ebp - 0x3c], eax
push 0
push dword [ebp - 0x3c]
push 0
push 0x16
push dword [ebp - 0xc]
call dword [sym.imp.wininet.dll_HttpQueryInfoW]
nop
nop
nop
nop
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.4ad1385a
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4ad04302
push ebx
call fcn.4ad1342f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ad04315
add eax, 8
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ad04320
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_lstrcpynW]
nop
nop
nop
nop
mov dword [ebp - 0x3c], eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrcpynW]
nop
nop
nop
nop
mov dword [ebp - 0x40], eax
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push 0x16
push dword [ebp - 0xc]
call dword [sym.imp.wininet.dll_HttpQueryInfoW]
nop
nop
nop
nop
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4ad04565
push 1
push 0
mov eax, 0x4ad272e8
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.4ad045c6
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4ad043a4
push ebx
call fcn.4ad1342f
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4ad04565
mov dword [ebp - 0x1c], 4
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.kernel32.dll_lstrcpynW]
nop
nop
nop
nop
mov dword [ebp - 0x3c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_lstrcpynW]
nop
nop
nop
nop
mov dword [ebp - 0x40], eax
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push 0x20000005
push dword [ebp - 0xc]
call dword [sym.imp.wininet.dll_HttpQueryInfoW]
nop
nop
nop
nop
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4ad04565
push 0x80000301
push 0
push dword [ebp - 0x20]
push 1
mov ebx, 0x1bc
call fcn.4ad1385a
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4ad0444c
push ebx
call fcn.4ad1342f
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4ad0445f
add eax, 8
push eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4ad0446a
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_lstrcpynW]
nop
nop
nop
nop
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
fld qword [ebp - 0x50]
call fcn.4ad010e4
push eax
push dword [ebp - 0xc]
call dword [sym.imp.wininet.dll_InternetReadFile]
nop
nop
nop
nop
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4ad044c9
mov dword [ebp - 0x38], 1
jmp 0x4ad0452a
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x34]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.4ad010e4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x34], eax
jne 0x4ad04500
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
jmp 0x4ad04520
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x34]
fstp qword [ebp - 0x48]
fsub qword [ebp - 0x48]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.4ad010e4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x34], 0
jne 0x4ad0447e
cmp dword [ebp - 0x38], 1
jne 0x4ad04565
mov eax, 0x4ad272a2
test eax, eax
je 0x4ad04550
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.4ad13429
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4ad04561
push ebx
call fcn.4ad1342f
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push dword [ebp - 0xc]
call dword [sym.imp.wininet.dll_InternetCloseHandle]
nop
nop
nop
nop
push dword [ebp - 8]
call dword [sym.imp.wininet.dll_InternetCloseHandle]
nop
nop
nop
nop
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4ad04599
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.4ad13429
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4ad0459e
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4ad045af
push ebx
call fcn.4ad1342f
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4ad045bf
push ebx
call fcn.4ad1342f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4