Function at 0x427480
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eefe
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
ja 0x4276e3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004793f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x427675
push 0x98
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x2b0]
call fcn.00408c30
mov edx, str.GetWindowsDirectory_Errror:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2b0]
call fcn.0040b820
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.0040b820
push 0x15
push str.CXpRestore::FileCheck
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x37c], 0xf
mov dword [ebp - 0x380], 0
mov byte [ebp - 0x390], 0
call fcn.0040f450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x378]
push 0xd
push str.XpRestore.cpp
mov dword [ebp - 0x364], 0xf
mov dword [ebp - 0x368], 0
mov byte [ebp - 0x378], 0
call fcn.0040f450
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00408b50
push eax
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 3
push eax
push 0xa1
lea eax, [ebp - 0x378]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x34c]
cmp eax, 8
jb 0x4275ea
inc eax
lea ecx, [ebp - 0x360]
push eax
push dword [ebp - 0x360]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x34c], 7
mov word [ebp - 0x360], ax
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x350], 0
cmp eax, 0x10
jb 0x427625
inc eax
lea ecx, [ebp - 0x378]
push eax
push dword [ebp - 0x378]
call fcn.0040f330
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x364], 0xf
mov dword [ebp - 0x368], 0
mov byte [ebp - 0x378], 0
cmp eax, 0x10
jb 0x42765e
inc eax
lea ecx, [ebp - 0x390]
push eax
push dword [ebp - 0x390]
call fcn.0040f330
lea ecx, [ebp - 0x260]
call fcn.00408b70
mov dword [ebp - 4], 4
jmp 0x427be4
cmp word [ebp - 0x218], 0
jne 0x427683
xor ecx, ecx
jmp 0x42769f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427690
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040e610
push 1
push ecx
push 0x4ba138
mov ecx, esi
call fcn.0040a470
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
cmp eax, 0xffffffff
je 0x4276d9
mov eax, dword [esi + 0x10]
sub eax, ecx
mov ecx, esi
push eax
push 2
call fcn.0040ee80
cmp dword [esi + 0x10], 0
je 0x427a55
cmp dword [esi + 0x14], 8
jb 0x4276ed
mov eax, dword [esi]
jmp 0x4276ef
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x427a55
push str.USM8PE8L_.ISO
mov edx, esi
lea ecx, [ebp - 0x360]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x42771f
xor bl, bl
jmp 0x42772f
cmp dword [eax + 0x14], 8
jb 0x427727
mov eax, dword [eax]
push eax
call edi
test eax, eax
setne bl
mov eax, dword [ebp - 0x34c]
cmp eax, 8
jb 0x42774d
inc eax
lea ecx, [ebp - 0x360]
push eax
push dword [ebp - 0x360]
call fcn.0040f5b0
test bl, bl
jne 0x4278e0
push 0x98
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x2b0]
call fcn.00408c30
push str.USM8PE8L_.ISO
mov edx, esi
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x360]
call fcn.0040c1a0
add esp, 4
mov esi, eax
mov edx, str.IsFileOrDirExist_Error:
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2b0]
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x34c]
cmp eax, 8
jb 0x4277d3
inc eax
lea ecx, [ebp - 0x360]
push eax
push dword [ebp - 0x360]
call fcn.0040f5b0
push str.CXpRestore::FileCheck
lea ecx, [ebp - 0x378]
call fcn.0040f550
push str.XpRestore.cpp
lea ecx, [ebp - 0x390]
mov byte [ebp - 4], 0xc
call fcn.0040f550
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00408b50
push eax
lea eax, [ebp - 0x378]
mov byte [ebp - 4], 0xe
push eax
push 0xb7
lea eax, [ebp - 0x390]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x34c]
cmp eax, 8
jb 0x427855
inc eax
lea ecx, [ebp - 0x360]
push eax
push dword [ebp - 0x360]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x34c], 7
mov word [ebp - 0x360], ax
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x350], 0
cmp eax, 0x10
jb 0x427890
inc eax
lea ecx, [ebp - 0x390]
push eax
push dword [ebp - 0x390]
call fcn.0040f330
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x37c], 0xf
mov dword [ebp - 0x380], 0
mov byte [ebp - 0x390], 0
cmp eax, 0x10
jb 0x4278c9
inc eax
lea ecx, [ebp - 0x378]
push eax
push dword [ebp - 0x378]
call fcn.0040f330
lea ecx, [ebp - 0x260]
call fcn.00408b70
mov dword [ebp - 4], 0xf
jmp 0x427be4
push str._scldr
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x360]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x427900
xor bl, bl
jmp 0x427910
cmp dword [eax + 0x14], 8
jb 0x427908
mov eax, dword [eax]
push eax
call edi
test eax, eax
setne bl
mov eax, dword [ebp - 0x34c]
cmp eax, 8
jb 0x42792e
inc eax
lea ecx, [ebp - 0x360]
push eax
push dword [ebp - 0x360]
call fcn.0040f5b0
test bl, bl
jne 0x427a4e
push 0x98
lea eax, [ebp - 0x348]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x348]
call fcn.00408c30
push str._scldr
lea edx, [esi + 0x30]
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x360]
call fcn.0040c1a0
add esp, 4
mov esi, eax
mov edx, str.IsFileOrDirExist_Error:
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x348]
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0x10
call fcn.0040f680
push str.CXpRestore::FileCheck
lea ecx, [ebp - 0x378]
call fcn.0040f550
push str.XpRestore.cpp
lea ecx, [ebp - 0x390]
mov byte [ebp - 4], 0x12
call fcn.0040f550
lea eax, [ebp - 0x3a8]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x348]
call fcn.00408b50
push eax
lea eax, [ebp - 0x378]
mov byte [ebp - 4], 0x14
push eax
push 0xbc
lea eax, [ebp - 0x390]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x3a8]
call fcn.0040f680
lea ecx, [ebp - 0x390]
call fcn.0040ef30
lea ecx, [ebp - 0x378]
call fcn.0040ef30
lea ecx, [ebp - 0x2f8]
call fcn.00408b70
mov dword [ebp - 4], 0x15
lea eax, [ebp - 0x2f8]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
jmp 0x427bf4
mov al, 1
jmp 0x427bff
push 0x98
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x2b0]
call fcn.00408c30
mov edx, str.Error:
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x2b0]
call fcn.0040b820
mov edx, esi
mov ecx, eax
call fcn.0040be40
mov edx, str._is_not_exist
mov ecx, eax
call fcn.0040b820
push 0x15
push str.CXpRestore::FileCheck
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x37c], 0xf
mov dword [ebp - 0x380], 0
mov byte [ebp - 0x390], 0
call fcn.0040f450
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x378]
push 0xd
push str.XpRestore.cpp
mov dword [ebp - 0x364], 0xf
mov dword [ebp - 0x368], 0
mov byte [ebp - 0x378], 0
call fcn.0040f450
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00408b50
push eax
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 8
push eax
push 0xad
lea eax, [ebp - 0x378]
push eax
sub esp, 8
call fcn.0041f440
add esp, 4
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x34c]
cmp eax, 8
jb 0x427b5e
inc eax
lea ecx, [ebp - 0x360]
push eax
push dword [ebp - 0x360]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x34c], 7
mov word [ebp - 0x360], ax
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x350], 0
cmp eax, 0x10
jb 0x427b99
inc eax
lea ecx, [ebp - 0x378]
push eax
push dword [ebp - 0x378]
call fcn.0040f330
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x364], 0xf
mov dword [ebp - 0x368], 0
mov byte [ebp - 0x378], 0
cmp eax, 0x10
jb 0x427bd2
inc eax
lea ecx, [ebp - 0x390]
push eax
push dword [ebp - 0x390]
call fcn.0040f330
lea ecx, [ebp - 0x260]
call fcn.00408b70
mov dword [ebp - 4], 9
lea eax, [ebp - 0x260]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0042f0f8
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret