Function at 0x1000e800
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100c7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x100c98a2]
test eax, eax
je 0x1000e851
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.CSysKitFileRoot64::GetFileSize
push str._s_hFile__0x_08x_lpFileSize__0x_08x__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.10003cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100295e0
push eax
call fcn.1000e090
mov dword [ebp - 0x20], eax
movzx eax, byte [0x100c98a2]
test eax, eax
je 0x1000e89d
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.CSysKitFileRoot64::GetFileSize
push str._s_hr__0x_08x_pSysKit64__0x_08x__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x18
cmp dword [ebp - 0x20], 0
jge 0x1000e982
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
movzx edx, byte [0x100c98a2]
test edx, edx
je 0x1000e8f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
push str.CSysKitFileRoot64::GetFileSize
push str._s_hFile__0x_08x_dwFileSizeLow___d_HighPart___d_err__0x_08x__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x20
cmp dword [ebp - 0x30], 0xffffffff
jne 0x1000e923
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000e923
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1001fe70
mov eax, dword [ebp - 0x34]
jmp 0x1000eb43
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x30]
mov dword [ecx], edx
movzx eax, byte [0x100c98a2]
test eax, eax
je 0x1000e964
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.CSysKitFileRoot64::GetFileSize
push str._s_hFile__0x_08x_dwFileSizeLow___d_LowPart___d_err__0x_08x__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x20
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1001fe70
mov eax, dword [ebp - 0x38]
jmp 0x1000eb43
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x1c]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x48], eax
push 1
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
call eax
mov dword [ebp - 0x18], eax
movzx ecx, byte [0x100c98a2]
test ecx, ecx
je 0x1000e9f9
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.CSysKitFileRoot64::GetFileSize
push str._s_1_hFile__0x_08x_bSuccess___d_liPos.QuadPart___llu__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x20
cmp dword [ebp - 0x18], 0
jne 0x1000ea1d
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1001fe70
mov eax, dword [ebp - 0x3c]
jmp 0x1000eb43
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x1c]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x4c], eax
push 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x64]
call ecx
mov dword [ebp - 0x18], eax
movzx edx, byte [0x100c98a2]
test edx, edx
je 0x1000ea9e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
push str.CSysKitFileRoot64::GetFileSize
push str._s_2_hFile__0x_08x_bSuccess___d_liOffset.QuadPart___llu_lpFileSize___llu__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x28
cmp dword [ebp - 0x18], 0
jne 0x1000eac2
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1001fe70
mov eax, dword [ebp - 0x40]
jmp 0x1000eb43
lea ecx, [ebp - 0x1c]
call fcn.10015020
mov ecx, eax
call fcn.1000d760
mov dword [ebp - 0x50], eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x64]
call edx
mov dword [ebp - 0x18], eax
movzx eax, byte [0x100c98a2]
test eax, eax
je 0x1000eb2b
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.CSysKitFileRoot64::GetFileSize
push str._s_3_hFile__0x_08x_bSuccess___d_liPos.QuadPart___llu__n
push 0xc
push 0x100b3cbc
call fcn.1007f9a0
add esp, 0x20
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1001fe70
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8