Function at 0x492c80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da028
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.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x492cc7
push 0x80004005
call fcn.0041ce60
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 0x492f82
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 0x492f74
cmp dword [esi + 0xc], 0
je 0x492da1
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x492d53
push str.IsWow64Process
push str.kernel32
call ecx
push eax
call ebx
mov edi, eax
test edi, edi
je 0x492d8a
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x492d8a
mov eax, dword [0x511ea4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x492da1
cmp dword [0x515be4], 0
jne 0x492d96
push str.Kernel32.dll
call ecx
test eax, eax
je 0x492d78
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515be4], eax
cmp dword [0x515be4], 0
jne 0x492d96
mov dword [ebp - 0x18], 1
jmp 0x492da1
mov dword [0x511ea4], 0
jmp 0x492da1
push 0
call dword [0x515be4]
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.0041c6e0
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x14]
mov ecx, edi
call fcn.00493920
test eax, eax
jne 0x492e34
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.00422020
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0041c740
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 0x492e16
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 0x492e34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x492e82
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 0x492e76
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x492e76
mov eax, dword [0x511ea4]
jmp 0x492e88
mov dword [0x511ea4], 0
jmp 0x492ee4
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x492ee4
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
jle 0x492ee4
lea ecx, [ebp - 0x10]
call fcn.004875f0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x492ed5
lea ecx, [edx - 1]
test ecx, ecx
js 0x492fb2
cmp ecx, edx
jg 0x492fb2
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x492ed5
cmp eax, 0x2f
je 0x492ed5
push str.0s
lea ecx, [ebp - 0x10]
call fcn.0041c1b0
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.0041c4b0
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 0x515408
call fcn.0048c0f0
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492f2b
movzx eax, word [esi + 8]
sub eax, 0
je 0x492f24
sub eax, 1
jne 0x492f2b
mov ecx, edi
call fcn.0048ae90
jmp 0x492f2b
mov ecx, edi
call fcn.0048b110
cmp dword [ebp - 0x18], 0
je 0x492f6b
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x515be4], eax
jne 0x492f63
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x492f5a
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515be4], eax
cmp dword [0x515be4], 0
je 0x492f6b
push 1
call dword [0x515be4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [ebp - 0x14]
mov esi, dword [esi]
cmp esi, dword [edx + 0x24]
jne 0x492d00
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x492f9e
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.0041ce60
int3