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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100739b3
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x18], 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 - 0x320], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x324], ebx
cmp dword [esi + 0x14], 8
jb 0x1001271c
mov eax, dword [esi]
jmp 0x1001271e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1001274a
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 - 0x18]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4
push 3
push 1
mov dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x78], 0
call fcn.1005f380
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x30c]
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__]
nop
cmp dword [ebp - 0x20], 0
je 0x100128fb
call fcn.100700a0
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x60]
push ecx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x100127c5
test byte [ebp - 0x60], 0x10
jne 0x10012856
cmp dword [ebp - 0x1c], 8
push 0
push 0
push 3
push 0
push 1
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 8
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x31c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10012838
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10012818
mov eax, dword [ebp - 0x38]
cdq
xor esi, esi
or esi, dword [ebp - 0x3c]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10012844
xorps xmm0, xmm0
movlpd qword [ebp - 0x31c], xmm0
mov edi, dword [ebp - 0x318]
mov esi, dword [ebp - 0x31c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10012844
mov edi, dword [ebp - 0x318]
mov esi, dword [ebp - 0x31c]
mov ebx, dword [ebp - 0x320]
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 - 0x30]
push eax
mov ecx, ebx
call fcn.1000f0e0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30c]
call fcn.1005f780
mov esi, eax
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x100128e4
cmp dword [ebp - 0x1c], 8
jb 0x10012887
push dword [ebp - 0x30]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp dword [esi + 0x14], 8
jae 0x100128ba
mov eax, dword [esi + 0x10]
inc eax
je 0x100128c5
add eax, eax
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x100128c5
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x40], 8
jb 0x10012790
push dword [ebp - 0x54]
call edi
add esp, 4
jmp 0x10012790
cmp dword [ebp - 0x1c], 8
jb 0x10012909
push dword [ebp - 0x30]
call edi
add esp, 4
lea ecx, [ebp - 0x30c]
call fcn.1005f6d0
mov al, 1
jmp 0x1001272c