Function at 0x1000cc10
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 0x1000cc4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000cc46
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1000ce7e
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 0x1000cc7f
call fcn.1000c4a0
test eax, eax
jns 0x1000cc82
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov dword [esi + 4], eax
cmp dword [esi + 0x80], 0
je 0x1000ccb4
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 0x1000ccb4
call fcn.1000c4a0
test eax, eax
js 0x1000ce7e
push 0
push 0xffffffffffffffff
push 0x1000e710
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x1000ccd8
call fcn.1000c4a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push edi
mov ecx, esi
call fcn.1000d9d0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0x24]
push ebx
mov dword [esi + 0x140], 1
call fcn.1003db67
add esp, 4
mov dword [esi + 0xd0], eax
test eax, eax
je 0x1000cdeb
mov edi, dword [ebp + 0x28]
mov dword [esi + 0xd4], ebx
cmp dword [esi + 0xac], 0
je 0x1000cdcb
cmp dword [esi + 0xb0], 8
lea eax, [esi + 0x9c]
jb 0x1000cd32
mov eax, dword [eax]
push 0
push 0
push 0x80
push 4
push edi
push 0x40000000
lea ecx, [esi + 0xd8]
push eax
call fcn.1000c560
mov edi, eax
test edi, edi
js 0x1000ce72
push 0
push dword [esi + 0x7c]
lea ecx, [esi + 0xd8]
push dword [esi + 0x78]
call fcn.1000e290
mov edi, eax
test edi, edi
js 0x1000ce72
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 0x1000cda9
call fcn.1000c4a0
mov edi, eax
test edi, edi
js 0x1000ce72
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000cdc8
call fcn.1000c4a0
mov edi, eax
test edi, edi
js 0x1000ce72
mov edi, dword [ebp + 0x28]
cmp dword [esi + 0x94], 0
je 0x1000ce70
push ebx
call fcn.1003db67
add esp, 4
mov dword [esi + 0xe0], eax
test eax, eax
jne 0x1000ce04
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 0x1000ce18
mov eax, dword [eax]
push 0
push 0
push 0x80
push 3
push edi
push SysReAllocString
push eax
lea ecx, [esi + 0xe8]
call fcn.1000c560
mov edi, eax
test edi, edi
js 0x1000ce72
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 0x1000ce61
call fcn.1000c4a0
mov edi, eax
test edi, edi
js 0x1000ce72
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