Function at 0x4942b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbb98
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 0x4942f7
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 0x4945b2
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 0x4945a4
cmp dword [esi + 0xc], 0
je 0x4943d1
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x494383
push str.IsWow64Process
push str.kernel32
call ecx
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4943ba
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x4943ba
mov eax, dword [0x511ea4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4943d1
cmp dword [0x515c64], 0
jne 0x4943c6
push str.Kernel32.dll
call ecx
test eax, eax
je 0x4943a8
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
cmp dword [0x515c64], 0
jne 0x4943c6
mov dword [ebp - 0x18], 1
jmp 0x4943d1
mov dword [0x511ea4], 0
jmp 0x4943d1
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.00494e70
test eax, eax
jne 0x494464
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 0x494446
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 0x494464
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x4944b2
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 0x4944a6
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x4944a6
mov eax, dword [0x511ea4]
jmp 0x4944b8
mov dword [0x511ea4], 0
jmp 0x494514
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x494514
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
jle 0x494514
lea ecx, [ebp - 0x10]
call fcn.004890f0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x494505
lea ecx, [edx - 1]
test ecx, ecx
js 0x4945e2
cmp ecx, edx
jg 0x4945e2
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x494505
cmp eax, 0x2f
je 0x494505
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.0048d710
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49455b
movzx eax, word [esi + 8]
sub eax, 0
je 0x494554
sub eax, 1
jne 0x49455b
mov ecx, edi
call fcn.0048c4b0
jmp 0x49455b
mov ecx, edi
call fcn.0048c730
cmp dword [ebp - 0x18], 0
je 0x49459b
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x515c64], eax
jne 0x494593
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49458a
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
cmp dword [0x515c64], 0
je 0x49459b
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 0x494330
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4945ce
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