Function at 0x10015f50
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x10059360
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov eax, dword [0x1006eb44]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x70]
push ecx
mov dword [esp + 0x64], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push 0x104
mov ecx, 0x105
lea ebx, [esp + 0x70]
mov dword [esp + 0x1c], esi
call fcn.10015350
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x10015fd3
test esi, esi
je 0x10015fc7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov ebx, eax
lea esi, [esp + 0x70]
call fcn.100158a0
lea edi, [esp + 0x6c]
call fcn.10011c20
mov esi, dword [esp + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
mov dword [esi - 8], eax
mov word [esi + eax*2], 0
mov eax, dword [0x1006eb44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], vtable.FileData.0
mov dword [esp + 0x2c], vtable.FileData.1.0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
test ebp, ebp
mov edx, dword [esp + 0x74]
mov byte [esp + 0x60], 1
mov dword [esp + 0x30], edx
jne 0x10016034
xor eax, eax
jmp 0x10016037
push ebp
call edi
push ebp
mov ebx, eax
lea esi, [esp + 0x3c]
call fcn.100158a0
test ebp, ebp
jne 0x1001604b
xor eax, eax
jmp 0x1001604e
push ebp
call edi
push ebp
mov ebx, eax
lea esi, [esp + 0x40]
call fcn.100158a0
lea edi, [esp + 0x6c]
lea eax, [esp + 0x40]
call fcn.10015ac0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1005e36c
call edi
test eax, eax
je 0x10016088
mov esi, eax
mov edx, 0x1005e36c
lea eax, [esp + 0x40]
call fcn.10013510
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100160a4
push esi
call edi
test eax, eax
je 0x100160a4
mov edx, esi
mov esi, eax
lea eax, [esp + 0x40]
call fcn.10013510
mov eax, dword [esp + 0x70]
push 0
push 0
push 3
push 0
push 1
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100160d8
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x74]
cmp eax, 2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], 0
jne 0x10016100
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
add dword [eax + 0x2b4], 0xffffffff
jmp 0x10016111
test eax, eax
jne 0x10016111
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
add dword [eax + 0x2b4], 1
mov eax, dword [esp + 0x68]
mov edx, dword [eax]
mov ecx, dword [edx + 0x2b4]
mov edx, dword [eax + 4]
mov dword [esp + 0x54], ecx
push edx
lea ecx, [esp + 0x30]
call fcn.1002ab90
lea ecx, [esp + 0x28]
mov bl, al
call fcn.10017410
mov eax, dword [esp + 0x6c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1001615f
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001615f
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10