Function at 0x493d80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db558
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x18], eax
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x493dc7
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov esi, dword [ebx + 0x24]
mov esi, dword [esi]
cmp esi, dword [ebx + 0x24]
je 0x494082
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [ebp - 0x14]
nop dword [eax]
movzx eax, word [esi + 0xa]
cmp eax, dword [ebp + 8]
jne 0x494074
cmp dword [esi + 0xc], 0
je 0x493ea1
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x493e53
push str.IsWow64Process
push str.kernel32
call ecx
push eax
call ebx
mov edi, eax
test edi, edi
je 0x493e8a
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x493e8a
mov eax, dword [0x511ea4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x493ea1
cmp dword [0x515c64], 0
jne 0x493e96
push str.Kernel32.dll
call ecx
test eax, eax
je 0x493e78
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
cmp dword [0x515c64], 0
jne 0x493e96
mov dword [ebp - 0x18], 1
jmp 0x493ea1
mov dword [0x511ea4], 0
jmp 0x493ea1
push 0
call dword [0x515c64]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, dword [esi + 0x10]
lea ebx, [esi + 0x10]
mov edi, esp
sub ecx, 0x10
mov dword [ebp - 0x24], edi
call fcn.0041c670
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x14]
mov ecx, edi
call fcn.00494940
test eax, eax
jne 0x493f34
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
call dword [eax]
push ebx
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00421dd0
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0041c6d0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493f16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493f34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x493f82
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x493f76
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x493f76
mov eax, dword [0x511ea4]
jmp 0x493f88
mov dword [0x511ea4], 0
jmp 0x493fe4
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x493fe4
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
jle 0x493fe4
lea ecx, [ebp - 0x10]
call fcn.00488bd0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x493fd5
lea ecx, [edx - 1]
test ecx, ecx
js 0x4940b2
cmp ecx, edx
jg 0x4940b2
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x493fd5
cmp eax, 0x2f
je 0x493fd5
push str.0s
lea ecx, [ebp - 0x10]
call fcn.0041c190
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.0041c490
mov edi, dword [ebp - 0x10]
movzx eax, word [esi + 8]
push edi
push dword [esi + 0x14]
push eax
push str.HandleFile_mode_d__alias_d__path_s.
push 0x515488
call fcn.0048d1f0
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49402b
movzx eax, word [esi + 8]
sub eax, 0
je 0x494024
sub eax, 1
jne 0x49402b
mov ecx, edi
call fcn.0048bf90
jmp 0x49402b
mov ecx, edi
call fcn.0048c210
cmp dword [ebp - 0x18], 0
je 0x49406b
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x515c64], eax
jne 0x494063
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49405a
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
cmp dword [0x515c64], 0
je 0x49406b
push 1
call dword [0x515c64]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [ebp - 0x14]
mov esi, dword [esi]
cmp esi, dword [edx + 0x24]
jne 0x493e00
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x49409e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0041cdf0
int3