Function at 0x5162a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb4
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
dec ebx
lea ecx, [ebp - 0x74]
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
push 0
call fcn.0052bc60
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
js 0x516497
lea esi, [ebp - 0xb4]
mov dword [esi], 0xffffffff
push 0x14
call fcn.0066d870
add esp, 4
mov edi, eax
mov ecx, eax
push 0x516d90
push 0x516d80
call fcn.0063d5e0
mov dword [ebp - 0x80], edi
mov ecx, esi
push edi
call fcn.0063d710
lea edi, [ebp - 0x60]
push 0x40
push dword [ebp + 0x20]
push edi
call fcn.006b2500
add esp, 0xc
lea esi, [ebp - 0x74]
mov ecx, esi
push edi
call fcn.0052bd00
mov ecx, edi
call fcn.0052bcd0
mov ecx, esi
call fcn.00634140
test al, al
je 0x51649e
lea ecx, [ebp - 0xb4]
call fcn.0063d730
lea esi, [ebp - 0x80]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ecx, esi
call fcn.006b2bc0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00516610
add esp, 0xc
test eax, eax
js 0x516574
lea esi, [ebp - 0x8c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea ecx, [ebp - 0x80]
call fcn.0069bd50
mov ecx, eax
push dword [ebp + 0x1c]
push esi
call fcn.00536510
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], ebx
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0xa4], xmm0
movdqu xmmword [ebp - 0xb4], xmm0
lea ecx, [ebp - 0xb4]
push esi
call fcn.00536bb0
lea ecx, [ebp - 0xb4]
push 0
push dword [ebp + 0xc]
call fcn.006b6890
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
mov ecx, edi
call fcn.0052eb20
mov byte [esi + 0xe], 1
push esi
call fcn.0052d610
add esp, 4
lea esi, [ebp - 0x68]
mov dword [esi + 4], ebx
mov dword [esi], ebx
push edi
lea eax, [ebp - 0xb4]
push eax
push esi
call fcn.0052be90
add esp, 0xc
mov ecx, esi
call fcn.00634140
test al, al
je 0x5164ca
xor esi, esi
lea eax, [ebp - 0x6c]
mov dword [eax], esi
lea ecx, [ebp - 0x74]
call fcn.0052bdd0
mov edi, eax
lea ecx, [ebp - 0x68]
call fcn.0052bdd0
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 0x5164ca
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x5164e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov edi, 0
cmp ebx, 0xffffffff
je 0x51648c
mov edi, eax
call fcn.0063cf00
mov eax, edi
mov edi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, edi
jmp 0x5164e8
mov esi, eax
jmp 0x5165c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x516578
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea ecx, [ebp - 0xb4]
call fcn.0063d730
jmp 0x5165c0
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.0052bcd0
lea edi, [ebp - 0x60]
mov ecx, edi
call fcn.0052eb70
test esi, esi
js 0x51658a
lea ecx, [ebp - 0x80]
push edi
call fcn.006b2bd0
mov ecx, edi
call fcn.00516bf0
mov ecx, edi
call fcn.0063d9e0
lea eax, [ebx + 1]
mov dword [ebp - 0xc0], eax
cmp eax, 2
jb 0x51652c
call fcn.0063cf00
xor edi, edi
mov dword [ebp - 0xbc], ebx
mov eax, dword [ebp + 0x24]
cmp dword [eax], ebx
je 0x51658c
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebx]
inc eax
cmp eax, 2
jae 0x5165df
cmp dword [ebp - 0xc0], 2
jb 0x51656b
mov eax, dword [ebp - 0xbc]
mov dword [ebx], eax
mov ebx, ecx
call fcn.0063cf00
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x51658c
mov esi, eax
jmp 0x5165b8
lea ecx, [ebp - 0xb4]
call fcn.0063d730
mov esi, 0x80004005
jmp 0x5165c0
mov edi, ebx
lea eax, [edi + 1]
cmp eax, 2
jb 0x5165a2
call fcn.0063cf00
push edi
call fcn.00633790
add esp, 4
lea ecx, [ebp - 0xb4]
call fcn.00536df0
lea ecx, [ebp - 0x8c]
call fcn.0063d9e0
lea ecx, [ebp - 0x80]
call fcn.006b2c80
lea ecx, [ebp - 0x74]
call fcn.0052bcd0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066e1f1
mov eax, esi
add esp, 0xb4
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0xb8], ecx
call fcn.0063cf00
push dword [ebx]
call fcn.00633790
mov ecx, dword [ebp - 0xb8]
add esp, 4
mov dword [ebx], 0
jmp 0x516551