Function at 0x418700
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e1ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
push 1
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
lea edi, [esi - 0x10]
mov eax, edi
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0xd
push str.TestMSVCR.exe
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x3c], 1
call fcn.004060a0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
push edx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call fcn.00422000
add esp, 0xc
call fcn.00422680
test eax, eax
je 0x4187ea
mov eax, edi
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x10
push str.TestMSVCR_64.exe
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x3c], 2
call fcn.004060a0
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push ebp
xor ecx, ecx
xor edx, edx
call fcn.00422000
lea eax, [ebp - 0x10]
add esp, 0xc
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4187ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00422680
test eax, eax
jne 0x418820
cmp dword [esp + 0x18], 0x64
jne 0x41884e
push 0x4f20f0
mov ecx, 0x5158b0
call fcn.00489840
mov ebp, dword [esp + 0x3c]
add esp, 4
mov dword [ebp + 0x48], ebx
jmp 0x418852
mov eax, 0x64
cmp dword [esp + 0x18], eax
jne 0x41884e
cmp dword [esp + 0x20], eax
jne 0x41884e
push 0x4f20f0
mov ecx, 0x5158b0
call fcn.00489840
mov edx, dword [esp + 0x3c]
add esp, 4
mov dword [edx + 0x48], ebx
mov ebp, edx
jmp 0x418852
mov ebp, dword [esp + 0x38]
cmp dword [ebp + 0x48], ebx
je 0x418999
push 0x4f2104
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
push 0x4f2114
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
push esi
push ebp
mov eax, 2
call fcn.00417f60
push 0x4f2128
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.InstAsm.exe
call fcn.00413a60
lea edx, [esp + 0x40]
push 0x4f0b70
mov ebx, 3
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], bl
call fcn.00416c70
add esp, 0x10
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 4
call fcn.00421520
push ebx
push 0x4f215c
lea eax, [esp + 0x40]
push eax
call fcn.004060a0
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x40]
push ecx
call fcn.004060a0
push 0xe
push str.TestMSVCR.exe_
lea edx, [esp + 0x40]
push edx
call fcn.004060a0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41894e
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push ecx
push edx
push 0x4f2184
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
push ecx
call fcn.00421ef0
add esp, 8
mov dword [ebp], eax
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418972
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418997
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189de
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8