Function at 0x102c605
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push esi
jne 0x102c644
push 0x57
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102c83f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102c83f
push esi
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x102c68a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1013530
call esi
push eax
call fcn.0102c5bf
call esi
test eax, eax
je 0x102c83f
call esi
test eax, eax
jne 0x102c83f
call esi
push eax
jmp 0x102c639
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x102c6c8
push 0x10134c0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
call fcn.0102c5bf
call edi
test eax, eax
je 0x102c7d1
call edi
test eax, eax
jne 0x102c7d1
call edi
push eax
jmp 0x102c7cb
cmp dword [ebp - 4], ebx
jne 0x102c7b3
push 0x20
push dword [ebp + 8]
call fcn.0102fdad
mov ebx, eax
test ebx, ebx
jne 0x102c6e8
push 0x1013440
jmp 0x102c69e
push dword [ebp - 8]
push ebx
call fcn.01037b30
test eax, eax
jne 0x102c705
push 0x10133c0
push eax
call fcn.0102c5bf
jmp 0x102c7d1
push 0x28
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x102c73d
push 0x1013384
push 8
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102c7d1
push 8
jmp 0x102c7cb
mov dword [esi], 6
mov dword [esi + 4], ebx
mov eax, dword [ebx + 0xc]
shl eax, 3
push eax
push dword [ebp + 8]
call fcn.0102fdad
test eax, eax
mov dword [esi + 8], eax
jne 0x102c766
push 0x1013308
jmp 0x102c69e
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
mov eax, dword [ebx + 0x18]
add eax, eax
push eax
push dword [ebp + 8]
call fcn.0102fe23
and dword [esi + 0x10], 0
push edi
mov dword [esi + 0xc], eax
call fcn.0102451c
test eax, eax
mov dword [esi + 0x14], eax
je 0x102c71c
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x102c7a9
push 0x1013290
jmp 0x102c69e
cmp dword [ebp - 0x10], 0
je 0x102c843
push 0x1013230
push 0x18
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102c7d1
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 8], 0
je 0x102c7e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x102c82f
mov eax, dword [esi + 4]
test eax, eax
je 0x102c803
cmp ebx, eax
jne 0x102c7f7
xor ebx, ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov eax, dword [esi + 8]
test eax, eax
je 0x102c816
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x102c823
push eax
call fcn.01022a57
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test ebx, ebx
je 0x102c83f
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
xor eax, eax
jmp 0x102c860
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
push dword [ebp + 8]
mov dword [esi + 0x18], edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4