Function at 0x1028624
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
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push esi
cmp edi, esi
jne 0x1028663
push 0x57
call fcn.010285de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102885e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102885e
push esi
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x10286a9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1014c10
call esi
push eax
call fcn.010285de
call esi
test eax, eax
je 0x102885e
call esi
test eax, eax
jne 0x102885e
call esi
push eax
jmp 0x1028658
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10286e7
push 0x1014ba0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
call fcn.010285de
call edi
test eax, eax
je 0x10287f0
call edi
test eax, eax
jne 0x10287f0
call edi
push eax
jmp 0x10287ea
cmp dword [ebp - 4], ebx
jne 0x10287d2
push 0x20
push dword [ebp + 8]
call fcn.0102a7d0
mov ebx, eax
test ebx, ebx
jne 0x1028707
push 0x1014b20
jmp 0x10286bd
push dword [ebp - 8]
push ebx
call fcn.0102cabf
test eax, eax
jne 0x1028724
push 0x1014aa0
push eax
call fcn.010285de
jmp 0x10287f0
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 0x102875c
push 0x1014a64
push 8
call fcn.010285de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10287f0
push 8
jmp 0x10287ea
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.0102a7d0
mov dword [esi + 8], eax
test eax, eax
jne 0x1028785
push 0x10149e8
jmp 0x10286bd
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.0102a846
and dword [esi + 0x10], 0
push edi
mov dword [esi + 0xc], eax
call fcn.0101e529
mov dword [esi + 0x14], eax
test eax, eax
je 0x102873b
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10287c8
push 0x1014970
jmp 0x10286bd
cmp dword [ebp - 0x10], 0
je 0x1028862
push 0x1014910
push 0x18
call fcn.010285de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10287f0
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 8], 0
je 0x10287ff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x102884e
mov eax, dword [esi + 4]
test eax, eax
je 0x1028822
cmp ebx, eax
jne 0x1028816
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 0x1028835
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1028842
push eax
call fcn.0101cbef
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
test ebx, ebx
je 0x102885e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
xor eax, eax
jmp 0x102887f
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