Function at 0x412550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
dec edi
lea ecx, [ebp - 0x74]
mov dword [ecx + 4], edi
mov dword [ecx], edi
push 0
call fcn.00420810
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x41278b
lea ebx, [ebp - 0xb4]
mov dword [ebx], 0xffffffff
push 0x14
call fcn.0049a900
add esp, 4
mov esi, eax
mov ecx, eax
push 0x4130d0
push 0x4130c0
call fcn.00462b80
mov dword [ebp - 0x80], esi
mov ecx, ebx
push esi
call fcn.00462ca0
lea ebx, [ebp - 0x60]
push 0x40
push dword [ebp + 0x20]
push ebx
call fcn.004da330
add esp, 0xc
lea esi, [ebp - 0x74]
mov ecx, esi
push ebx
call fcn.004208b0
mov ecx, ebx
call fcn.00420880
mov ecx, esi
call fcn.0045dec0
test al, al
jne 0x412629
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x412614
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea ecx, [ebp - 0xb4]
call fcn.00462cc0
test esi, esi
jns 0x412634
jmp 0x41285c
lea ecx, [ebp - 0xb4]
call fcn.00462cc0
mov esi, 0x80004005
jmp 0x41285c
lea ecx, [ebp - 0xb4]
call fcn.00462cc0
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x80]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov ecx, ebx
call fcn.004dac30
mov ecx, esi
mov edx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004128b0
add esp, 0xc
test eax, eax
js 0x412784
mov esi, dword [ebp + 0x1c]
lea ebx, [ebp - 0x8c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
lea ecx, [ebp - 0x80]
call fcn.004c4c20
mov ecx, eax
push esi
push ebx
call fcn.004270b0
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], edi
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0xa4], xmm0
movdqu xmmword [ebp - 0xb4], xmm0
lea esi, [ebp - 0xb4]
mov ecx, esi
push ebx
call fcn.004276b0
mov ecx, esi
push 0
push dword [ebp + 0xc]
call fcn.004dc320
lea esi, [ebp - 0x5c]
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x3c], xmm0
movdqu xmmword [esi + 0x2c], xmm0
movdqu xmmword [esi + 0x1c], xmm0
movdqu xmmword [esi + 0xc], xmm0
movdqu xmmword [esi - 4], xmm0
lea ebx, [ebp - 0x60]
mov ecx, ebx
call fcn.00423c20
mov byte [esi + 0xe], 1
push esi
call fcn.004222e0
add esp, 4
lea esi, [ebp - 0x68]
mov dword [esi + 4], edi
mov dword [esi], edi
push ebx
lea eax, [ebp - 0xb4]
push eax
push esi
call fcn.00420eb0
add esp, 0xc
mov ecx, esi
call fcn.0045dec0
test al, al
je 0x412792
xor esi, esi
lea eax, [ebp - 0x6c]
mov dword [eax], esi
lea ecx, [ebp - 0x74]
call fcn.00420980
mov edi, eax
lea ecx, [ebp - 0x68]
call fcn.00420980
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push 0x101000
lea ecx, [ebp - 0x6c]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x412792
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x4127ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov edi, 0
cmp ebx, 0xffffffff
je 0x412779
mov edi, eax
call fcn.00462b50
mov eax, edi
mov edi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, edi
jmp 0x4127b0
mov esi, eax
jmp 0x412854
mov esi, eax
jmp 0x41285c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x68]
call fcn.00420880
lea edi, [ebp - 0x60]
mov ecx, edi
call fcn.00423c70
test esi, esi
js 0x412828
lea ecx, [ebp - 0x80]
push edi
call fcn.004dac40
mov ecx, edi
call fcn.00412f20
mov ecx, edi
call fcn.00462e80
lea edi, [ebx + 1]
cmp edi, 2
jb 0x4127ea
call fcn.00462b50
mov dword [ebp - 0xbc], ebx
mov eax, dword [ebp + 0x24]
cmp dword [eax], ebx
je 0x412826
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebx]
inc eax
cmp eax, 2
jae 0x41287b
cmp edi, 2
jb 0x41281f
mov eax, dword [ebp - 0xbc]
mov dword [ebx], eax
mov edi, ecx
call fcn.00462b50
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea eax, [ebx + 1]
cmp eax, 2
jb 0x41283e
call fcn.00462b50
push ebx
call fcn.0045db70
add esp, 4
lea ecx, [ebp - 0xb4]
call fcn.00427a10
lea ecx, [ebp - 0x8c]
call fcn.00462e80
lea ecx, [ebp - 0x80]
call fcn.004dacf0
lea ecx, [ebp - 0x74]
call fcn.00420880
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b483
mov eax, esi
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0xb8], ecx
call fcn.00462b50
push dword [ebx]
call fcn.0045db70
mov ecx, dword [ebp - 0xb8]
add esp, 4
mov dword [ebx], 0
jmp 0x412809