Function at 0x10012950
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073973
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x31c], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x320], ebx
jb 0x1001299f
mov eax, dword [esi]
jmp 0x100129a1
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x100129cd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
push edi
push ecx
push 1
mov dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x308]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x74], 0
call fcn.1005f560
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 1
call fcn.1005f780
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x1c], 0
je 0x10012b7d
call fcn.100700a0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10012a47
test byte [ebp - 0x5c], 0x10
jne 0x10012ad8
cmp dword [ebp - 0x18], 8
push 0
push 0
push 3
push 0
push 1
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 8
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x318], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10012aba
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10012a9a
mov eax, dword [ebp - 0x34]
cdq
xor esi, esi
or esi, dword [ebp - 0x38]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10012ac6
xorps xmm0, xmm0
movlpd qword [ebp - 0x318], xmm0
mov edi, dword [ebp - 0x314]
mov esi, dword [ebp - 0x318]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10012ac6
mov edi, dword [ebp - 0x314]
mov esi, dword [ebp - 0x318]
mov ebx, dword [ebp - 0x31c]
add dword [ebx + 0x10], esi
adc dword [ebx + 0x14], edi
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.1000f0e0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x308]
call fcn.1005f780
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x10012b66
cmp dword [ebp - 0x18], 8
jb 0x10012b09
push dword [ebp - 0x2c]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [esi + 0x14], 8
jae 0x10012b3c
mov eax, dword [esi + 0x10]
inc eax
je 0x10012b47
add eax, eax
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x10012b47
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x3c], 8
jb 0x10012a12
push dword [ebp - 0x50]
call edi
add esp, 4
jmp 0x10012a12
cmp dword [ebp - 0x18], 8
jb 0x10012b8b
push dword [ebp - 0x2c]
call edi
add esp, 4
lea ecx, [ebp - 0x308]
call fcn.1005f6d0
mov al, 1
jmp 0x100129af