Function at 0x10c5f38
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor ebx, ebx
push edi
mov esi, 0x100e694
cmp dword [ebp + 8], ebx
jne 0x10c5f5f
push 0x100e8a0
push 0xd3d
push esi
call fcn.0107b4be
cmp dword [ebp + 0x10], ebx
jne 0x10c5f74
push 0x100e970
push 0xd3e
push esi
call fcn.0107b4be
cmp dword [ebp + 0xc], ebx
je 0x10c5f89
push 0x100e948
push 0xd3f
push esi
call fcn.0107b4be
mov dword [ebp + 0xc], ebx
mov edx, 0x2200000
cmp byte [ebp + 0x14], bl
je 0x10c5f9b
mov edx, 0x3200000
push 9
pop ecx
push ebx
push edx
push 3
push ebx
push 1
push ebx
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x14], eax
mov edi, 0xffff
mov esi, 0x80070000
cmp eax, 0xffffffff
jne 0x10c6016
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10c5fd9
and eax, edi
or eax, esi
cmp eax, ebx
mov dword [ebp + 0xc], eax
jge 0x10c6016
push dword [ebp + 8]
mov ecx, dword [0x1111a74]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x100e860
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x100e778
mov dword [ebp - 8], 0xd57
mov dword [ebp - 4], ebx
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const__
add esp, 0xc
jmp 0x10c6135
push 0x28
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x10c607a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10c6038
and eax, edi
or eax, esi
mov dword [ebp + 0xc], eax
mov eax, dword [0x1111a74]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push 0x100e8f0
push 0x100cc58
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x100cc1c
push eax
mov dword [ebp - 0xc], 0x100e778
mov dword [ebp - 8], 0xd5a
mov dword [ebp - 4], ebx
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const__
add esp, 0x10
jmp 0x10c6109
mov eax, dword [ebp + 0x10]
add eax, 0x1c
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x20], eax
cmp eax, 0xffffffff
jne 0x10c60e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10c60a3
and eax, edi
or eax, esi
cmp eax, ebx
mov dword [ebp + 0xc], eax
jge 0x10c60dd
push dword [ebp + 8]
mov ecx, dword [0x1111a74]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x100e8b4
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x100e778
mov dword [ebp - 8], 0xd64
mov dword [ebp - 4], ebx
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const__
add esp, 0xc
jmp 0x10c6109
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x18], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x10c6135
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10c6135
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10c612a
and eax, edi
or eax, esi
push ebx
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10