Function at 0x102819e
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
jne 0x10281c8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10283ff
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x102821c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1012288
call ebx
push eax
call fcn.0102c5bf
call ebx
test eax, eax
je 0x1028391
call ebx
test eax, eax
jne 0x1028391
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1028391
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x102825a
push 0x1012228
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
call fcn.0102c5bf
call ebx
test eax, eax
je 0x102838c
call ebx
test eax, eax
jne 0x102838c
call ebx
push eax
jmp 0x1028386
cmp dword [ebp - 0xc], edi
je 0x1028280
push 0x10121d8
push 0x18
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102838c
push 0x18
jmp 0x1028386
push 0x30
push ebx
call fcn.0102fdad
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x1028296
push 0x1012168
jmp 0x1028230
mov ebx, dword [ebp - 0x10]
call fcn.01028056
test eax, eax
jne 0x10282a9
push 0x1012100
jmp 0x1028230
push 0x30
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x102836e
mov ebx, dword [ebp - 8]
push 8
push dword [ebp - 4]
mov dword [esi], 6
mov dword [esi + 8], ebx
call fcn.0102fdad
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
cmp eax, edi
jbe 0x1028301
imul eax, eax, 0x48
push eax
push dword [ebp - 4]
call fcn.0102fdad
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x1028304
push 0x1012090
jmp 0x1028230
mov dword [esi + 0x10], edi
mov eax, dword [ebx + 0x1c]
cmp eax, edi
jbe 0x1028328
shl eax, 4
push eax
push dword [ebp - 4]
call fcn.0102fdad
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x102832b
push 0x1012018
jmp 0x1028230
mov dword [esi + 0x14], edi
mov ebx, dword [ebx + 0x14]
cmp ebx, edi
jbe 0x102834f
lea eax, [ebx + ebx]
push eax
push dword [ebp - 4]
call fcn.0102fdad
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x1028352
push 0x1011fa8
jmp 0x1028230
mov dword [esi + 0x18], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.0102451c
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x1028403
push 0x1011f78
push 8
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102838c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], edi
je 0x102839a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x10283ed
mov eax, dword [esi + 8]
cmp eax, edi
je 0x10283be
cmp dword [ebp - 8], eax
jne 0x10283b3
mov dword [ebp - 8], edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x10283d0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x10283e2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [ebp - 8], edi
je 0x10283ff
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
xor eax, eax
jmp 0x102841d
lea ecx, [esi + 0x20]
lea edx, [esi + 0x28]
push ecx
push edx
push eax
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [edx], edi
mov dword [edx + 4], edi
call fcn.010229e8
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4