Function at 0x1000c070
Capabilities:
Get file size
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push 0
push 0
lea ebx, [esi + 0x100]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x1000c0ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000c0a6
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1000c2de
push dword [ebp + 0x20]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
jne 0x1000c0df
call fcn.1000b900
test eax, eax
jns 0x1000c0e2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov dword [esi + 4], eax
cmp dword [esi + 0x80], 0
je 0x1000c114
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1000c114
call fcn.1000b900
test eax, eax
js 0x1000c2de
push 0
push 0xffffffffffffffff
push 0x1000db70
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x1000c138
call fcn.1000b900
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push edi
mov ecx, esi
call fcn.1000ce30
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0x24]
push ebx
mov dword [esi + 0x140], 1
call fcn.1003d123
add esp, 4
mov dword [esi + 0xd0], eax
test eax, eax
je 0x1000c24b
mov edi, dword [ebp + 0x28]
mov dword [esi + 0xd4], ebx
cmp dword [esi + 0xac], 0
je 0x1000c22b
cmp dword [esi + 0xb0], 8
lea eax, [esi + 0x9c]
jb 0x1000c192
mov eax, dword [eax]
push 0
push 0
push 0x80
push 4
push edi
push 0x40000000
lea ecx, [esi + 0xd8]
push eax
call fcn.1000b9c0
mov edi, eax
test edi, edi
js 0x1000c2d2
push 0
push dword [esi + 0x7c]
lea ecx, [esi + 0xd8]
push dword [esi + 0x78]
call fcn.1000d6f0
mov edi, eax
test edi, edi
js 0x1000c2d2
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push dword [esi + 0xd8]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000c209
call fcn.1000b900
mov edi, eax
test edi, edi
js 0x1000c2d2
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000c228
call fcn.1000b900
mov edi, eax
test edi, edi
js 0x1000c2d2
mov edi, dword [ebp + 0x28]
cmp dword [esi + 0x94], 0
je 0x1000c2d0
push ebx
call fcn.1003d123
add esp, 4
mov dword [esi + 0xe0], eax
test eax, eax
jne 0x1000c264
push dword [ebp - 4]
mov edi, 0x8007000e
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea eax, [esi + 0x84]
mov dword [esi + 0xe4], ebx
cmp dword [eax + 0x14], 8
jb 0x1000c278
mov eax, dword [eax]
push 0
push 0
push 0x80
push 3
push edi
push SysReAllocString
push eax
lea ecx, [esi + 0xe8]
call fcn.1000b9c0
mov edi, eax
test edi, edi
js 0x1000c2d2
lea eax, [ebp - 8]
push eax
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x1000c2c1
call fcn.1000b900
mov edi, eax
test edi, edi
js 0x1000c2d2
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xf0], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xf4], eax
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24