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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4736c0
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x415b1d
xor eax, eax
jmp 0x4160bd
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 2
test ecx, ecx
ja 0x415b34
call fcn.0040c420
mov eax, dword [eax]
push eax
call fcn.00417750
mov eax, dword [esi + 0x38]
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
xor ebx, ebx
sar edx, 2
test edx, edx
jbe 0x415c2a
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 4]
push ecx
lea edi, [ebx*4]
add eax, edi
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x25c], 0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x260], 0xffffffff
call fcn.00419d60
mov dword [esp + 0x258], 1
mov edx, dword [esi + 0x38]
mov ecx, dword [edx + 4]
push eax
add ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 4]
add eax, edi
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415be3
and eax, 0x10
mov eax, 0
sete al
test eax, eax
jne 0x415c15
mov ecx, dword [esi + 0x38]
mov ecx, dword [ecx + 4]
push 0
add ecx, edi
push 0x2a
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
jne 0x415c15
mov edx, dword [esi + 0x38]
mov ecx, dword [edx + 4]
push 0
add ecx, edi
push 0x3f
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
je 0x415ca5
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x415b52
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
and edx, 0xfffffffc
cmp edx, 4
jne 0x415cc2
push 0x208
lea eax, [esp + 0x40]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x18]
call dword [0x4763f4]
mov dword [esp + 0x258], 2
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x14]
push eax
add ecx, 0x20
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x415d03
mov edx, dword [esi + 0x38]
mov eax, dword [edx + 4]
lea ecx, [eax + ebx*4]
push ecx
lea ecx, [esi + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov eax, 0x6403ee00
jmp 0x4160bd
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
and ecx, 0xfffffffc
cmp ecx, 8
jne 0x415d03
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp edx, 1
ja 0x415ce5
call fcn.0040c420
lea eax, [ecx + 4]
mov ecx, dword [esi + 0x38]
push eax
add ecx, 0x20
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov ecx, dword [esi + 0x38]
push 0x22
add ecx, 0x20
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Remove]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
mov edi, 1
sar ecx, 2
mov dword [esp + 0x18], edi
cmp ecx, edi
jbe 0x4160b8
lea ebx, [edi + 2]
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
sub edx, eax
sar edx, 2
cmp edx, edi
jbe 0x415b2f
lea eax, [eax + edi*4]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x258], ebx
push str._autotest
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x415d72
mov eax, dword [0x491c54]
mov dword [eax + 0x68], 1
jmp 0x41608a
push 0x47e2c4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x415d94
mov ecx, dword [esi + 0x38]
mov dword [ecx + 0x28], 1
jmp 0x41608a
push 0x47e278
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x415db6
mov edx, dword [esi + 0x38]
mov dword [edx + 0x2c], 1
jmp 0x41608a
push str._off
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x415dd8
mov eax, dword [esi + 0x38]
mov dword [eax + 0x30], 1
jmp 0x41608a
push 2
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x258], 4
push 0x47e294
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0x258], bl
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp byte [esp + 0x13], 0
lea ecx, [esp + 0x14]
je 0x415e8c
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x258], 5
mov ecx, dword [esi + 0x38]
push eax
add ecx, 0x24
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x258], bl
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + 0x24]
cmp dword [edx - 0xc], 0
jne 0x41608a
mov dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 0x64040000
jmp 0x4160bd
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x258], 6
push 0x47e2cc
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0x258], bl
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp byte [esp + 0x13], 0
je 0x415f2e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffd
push eax
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x258], 7
mov eax, dword [eax]
mov edi, dword [esi + 0x38]
add edi, 0x10
push eax
call fcn.00417750
mov byte [esp + 0x258], bl
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
add eax, 0x10
test ecx, 0xfffffffc
je 0x4160e0
mov edi, dword [esp + 0x18]
jmp 0x41608a
push ebx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x258], 8
push 0x47e2d4
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0x258], bl
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp byte [esp + 0x13], 0
je 0x415f81
mov eax, dword [esi + 0x38]
mov dword [eax + 0x34], 1
jmp 0x41608a
push ebx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x258], 9
push 0x47e2dc
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0x258], bl
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp byte [esp + 0x13], 0
je 0x415fd4
mov edx, dword [esi + 0x38]
mov dword [edx + 0x34], 2
jmp 0x41608a
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x258], 0xa
push 0x47e2e4
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0x258], bl
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp byte [esp + 0x13], 0
je 0x416020
mov ecx, dword [esi + 0x38]
mov dword [ecx + 0x34], ebx
jmp 0x41608a
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x258], 0xb
push 0x47e2ec
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0x258], bl
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp byte [esp + 0x13], 0
je 0x416070
mov eax, dword [esi + 0x38]
mov dword [eax + 0x34], 4
jmp 0x41608a
push 0x47e2b4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x4160fc
mov dword [esi + 0x54], 1
mov dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
inc edi
sar ecx, 2
mov dword [esp + 0x18], edi
cmp edi, ecx
jb 0x415d23
mov eax, 1
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00428cb4
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 0x6403fe00
jmp 0x4160bd
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov dword [esp + 0x258], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 0x200
jmp 0x4160bd