Function at 0x4128c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov ebx, dword [ebp + 0x20]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [esp + 0xc8], eax
xor esi, esi
dec esi
lea edi, [esp + 0x5c]
mov dword [edi + 4], esi
mov dword [edi], esi
mov ecx, edi
push 0
call fcn.00467d30
mov ecx, ebx
mov edx, edi
call fcn.00412b70
test eax, eax
js 0x412a4f
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x50]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov ecx, ebx
call fcn.004dbe60
mov ecx, edi
mov edx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00412c40
add esp, 0xc
test eax, eax
js 0x412af4
mov edi, dword [ebp + 0x1c]
lea ebx, [esp + 0x44]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
lea ecx, [esp + 0x50]
call fcn.004c53e0
mov ecx, eax
push edi
push ebx
call fcn.004246b0
lea edi, [esp + 0x10]
mov dword [edi + 0x24], esi
mov dword [edi + 0x20], esi
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ecx, edi
push ebx
call fcn.00421de0
mov ecx, edi
push 0
push dword [ebp + 0xc]
call fcn.004dba30
lea edi, [esp + 0x70]
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ecx, edi
call fcn.00425ff0
mov byte [edi + 0x12], 1
lea eax, [esp + 0x74]
push eax
call fcn.004270e0
add esp, 4
lea ebx, [esp + 0x68]
mov dword [ebx + 4], esi
mov dword [ebx], esi
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00427ee0
add esp, 0xc
mov ecx, ebx
call fcn.00467e80
test al, al
je 0x412a56
xor ebx, ebx
lea eax, [esp + 0x64]
mov dword [eax], ebx
lea ecx, [esp + 0x5c]
call fcn.004287e0
mov edi, eax
lea ecx, [esp + 0x68]
call fcn.004287e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x101000
lea ecx, [esp + 0x70]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x412a56
mov esi, dword [esp + 0x64]
test esi, esi
je 0x412a72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], eax
xor ebx, ebx
mov edi, 0
cmp esi, 0xffffffff
je 0x412a41
call fcn.00465200
mov edi, esi
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x412a74
mov ebx, eax
jmp 0x412b2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov ebx, 0x80004005
cmovne ebx, ecx
xor esi, esi
lea ecx, [esp + 0x68]
call fcn.00467da0
lea edi, [esp + 0x70]
mov ecx, edi
call fcn.00426040
test ebx, ebx
js 0x412af8
lea ecx, [esp + 0x50]
push edi
call fcn.004dbe70
mov ecx, edi
call fcn.00413140
mov ecx, edi
call fcn.00464770
lea eax, [esi + 1]
mov dword [esp + 4], eax
cmp eax, 2
jb 0x412ab5
call fcn.00465200
xor edi, edi
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0x24]
cmp dword [eax], esi
je 0x412afa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x412b4c
cmp dword [esp + 4], 2
jb 0x412ae8
mov eax, dword [esp + 0xc]
mov dword [esi], eax
call fcn.00465200
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x412afa
mov ebx, eax
jmp 0x412b22
mov edi, esi
lea eax, [edi + 1]
cmp eax, 2
jb 0x412b10
call fcn.00465200
push edi
call fcn.00468130
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00422030
lea ecx, [esp + 0x44]
call fcn.00464770
lea ecx, [esp + 0x50]
call fcn.004dbf20
lea ecx, [esp + 0x5c]
call fcn.00467da0
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.0049b033
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00465200
push dword [esi]
call fcn.00468130
add esp, 4
mov dword [esi], 0
jmp 0x412ad6