Function at 0x103838d
Capabilities:
Check http status code
Get file size
Read file on windows
Read http header
Receive http response

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
lea eax, [ebp - 0x30]
push eax
push 3
push 0xc0000000
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
mov ebx, 0x80070000
cmp eax, esi
je 0x10383e3
cmp eax, 0xffffffff
jne 0x10383fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10383f4
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x1038580
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x103842a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1038420
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x1038580
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0100ce3f
mov edi, eax
cmp edi, esi
jl 0x1038580
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push esi
push dword [ebp + 0x10]
push 0x10097ac
push dword [ebp + 8]
call fcn.0103812d
mov edi, eax
cmp edi, esi
jl 0x103855c
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x1038491
mov edi, 0x8007000e
jmp 0x103855c
push esi
lea eax, [ebp + 0xc]
push eax
push 0x1000
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10384c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10384bc
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x103855c
cmp dword [ebp + 0xc], esi
jbe 0x10384fe
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x10384f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10384f3
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x103855c
cmp dword [ebp + 0xc], esi
ja 0x1038491
push esi
push dword [ebp - 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1038523
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x103851d
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x103855c
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0xc], 4
push esi
push 0x20000013
push dword [ebp - 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1038549
xor edi, edi
jmp 0x103855c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x103855a
and eax, 0xffff
or eax, ebx
mov edi, eax
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x10], esi
je 0x103856c
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x14], esi
je 0x1038576
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 4], esi
je 0x1038580
push dword [ebp - 4]
call ebx
cmp dword [ebp - 8], esi
je 0x1038594
cmp dword [ebp - 8], 0xffffffff
je 0x1038594
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], esi
je 0x10385aa
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, esi
jl 0x10385be
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0xc8
je 0x10385be
xor eax, eax
inc eax
jmp 0x10385c0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10