Function at 0x410cb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [0x4a3ecc]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.00411060
mov ebx, eax
test eax, eax
jne 0x410ff3
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
add eax, ecx
sub esp, 0x18
mov dword [esp + 0x10], eax
movdqa xmm0, xmmword [0x48ae00]
movdqu xmmword [esp], xmm0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp dword [esi + 0x18], eax
je 0x410d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x18]
inc eax
cmp eax, 2
jae 0x411009
mov eax, edi
inc eax
cmp eax, 2
jb 0x410d2a
mov dword [esi + 0x18], edi
call fcn.00449c40
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x18]
mov ebx, dword [ebp + 0x18]
lea eax, [edi + 1]
cmp eax, 1
ja 0x410d51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ebx, 0x19
jmp 0x410ff3
sub esp, 0x14
movdqa xmm0, xmmword [0x48ae10]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x410fb9
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x410e23
cmp dword [ebp + 0x14], 0
je 0x410e23
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
lea edi, [ecx + eax]
push dword [ebp + 0x14]
push ebx
push edi
call fcn.0045d200
add esp, 0xc
xor eax, eax
pxor xmm0, xmm0
pcmpeqd xmm1, xmm1
movdqu xmm2, xmmword [edi + eax*4]
movdqa xmm3, xmm2
pcmpeqd xmm3, xmm0
movd ecx, xmm3
not ecx
test cl, 1
je 0x410dcc
movd ecx, xmm2
sub ecx, ebx
mov dword [edi + eax*4], ecx
pxor xmm3, xmm1
pextrw ecx, xmm3, 2
test cl, 1
je 0x410de9
pshufd xmm4, xmm2, 0x55
movd ecx, xmm4
sub ecx, ebx
mov dword [edi + eax*4 + 4], ecx
pextrw ecx, xmm3, 4
test cl, 1
je 0x410e02
pshufd xmm4, xmm2, 0xee
movd ecx, xmm4
sub ecx, ebx
mov dword [edi + eax*4 + 8], ecx
pextrw ecx, xmm3, 6
test cl, 1
je 0x410e1b
pshufd xmm2, xmm2, 0xff
movd ecx, xmm2
sub ecx, ebx
mov dword [edi + eax*4 + 0xc], ecx
add eax, 4
cmp eax, 0x40
jne 0x410dab
mov eax, dword [ebp + 0x10]
mov dword [0x4a541c], eax
mov ecx, esi
call fcn.0040f880
test al, al
je 0x411048
lea edi, [ebp - 0x14]
mov dword [edi], 0xffffffff
mov eax, 0x4a541c
push edi
push 4
push eax
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x410fc8
cmp dword [ebp - 0x14], 4
mov dword [0x4a541c], 0
mov ebx, 0x3a
jne 0x410fe8
mov eax, dword [ebp + 0x14]
mov dword [0x4a5420], eax
mov ecx, esi
call fcn.0040f880
test al, al
je 0x411052
mov dword [ebp - 0x14], 0xffffffff
mov eax, 0x4a5420
push edi
push 4
push eax
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x410fd9
cmp dword [ebp - 0x14], 4
mov dword [0x4a5420], 0
mov ebx, 0x3a
jne 0x410fe8
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov edi, dword [esi + 8]
push 0x1c
call fcn.0045b99a
add esp, 4
mov ebx, eax
mov ecx, eax
push dword [ebp + 8]
push dword [esi + 0x24]
push edi
push dword [ebp - 0x20]
call fcn.00424ca0
mov edi, dword [esi + 0x20]
mov dword [esi + 0x20], ebx
test edi, edi
je 0x410f09
mov ecx, edi
call fcn.00424d10
push edi
call fcn.0045c216
add esp, 4
mov ebx, dword [esi + 0x20]
mov ecx, ebx
push 0x400
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call fcn.00424db0
mov ebx, 4
test al, al
je 0x410ff3
lea eax, [ebp - 0x18]
mov dword [eax], 0xffffffff
mov ebx, dword [esi]
mov edi, dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
push ecx
push ecx
push 7
lea ecx, [ebp - 0x18]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x411025
mov eax, dword [ebp - 0x18]
mov dword [0x4a52d0], eax
mov ecx, esi
call fcn.0040f880
test al, al
je 0x411059
mov dword [ebp - 0x14], 0xffffffff
mov eax, 0x4a52d0
lea ecx, [ebp - 0x14]
push ecx
push 4
push eax
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x411037
cmp dword [ebp - 0x14], 4
mov dword [0x4a52d0], 0
mov ebx, 0x3a
jne 0x410fe8
mov ecx, esi
call fcn.0040fa10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x410ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ebx, 0x1b
jmp 0x410ff3
mov ebx, 0x39
mov dword [0x4a541c], 0
jmp 0x410fe8
mov ebx, 0x39
mov dword [0x4a5420], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be32
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
call fcn.00449c40
push dword [esi + 0x18]
call fcn.00449c50
add esp, 4
mov dword [esi + 0x18], 0
jmp 0x410d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, 0x1a
jmp 0x410ff3
mov ebx, 0x39
mov dword [0x4a52d0], 0
jmp 0x410fe8
mov ebx, 8
jmp 0x410fcd
mov ebx, 8
jmp 0x410fde
mov ebx, 8
jmp 0x41103c