Function at 0x414ea0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43a794
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4151b8
cmp dword [esp + 0x34], 0
je 0x415088
mov eax, dword [edi + 0x8c]
sub edi, 0xffffff80
cmp eax, dword [edi + 0x10]
jbe 0x414f03
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x414f11
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [edi]
mov ebx, esi
mov dword [esp + 0x1c], ebx
lea esp, [esp]
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x414f2e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
test ebp, ebp
je 0x414f38
cmp ebp, eax
je 0x414f3e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x414fc7
test ebp, ebp
jne 0x414fbd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x414f5d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
lea esi, [esp + 0x34]
call fcn.00413410
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
mov ecx, esi
sete bl
mov byte [esp + 0x28], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test bl, bl
jne 0x4151b8
test ebp, ebp
jne 0x414fc2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 0x10]
jb 0x414faf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add dword [esp + 0x1c], 4
mov ebx, dword [esp + 0x1c]
jmp 0x414f20
mov eax, dword [ebp]
jmp 0x414f52
mov eax, dword [ebp]
jmp 0x414fa0
push 0x10
call sub.mfc90u.dll_new
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x414fec
mov ecx, esi
call dword [0x44382c]
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov dword [esi + 0xc], ebx
jmp 0x414fee
xor esi, esi
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x34], esi
cmp ecx, ebx
jne 0x414ffd
xor eax, eax
jmp 0x415005
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov ebx, dword [edi + 0x10]
mov edx, ebx
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x41501d
mov dword [ebx], esi
add ebx, 4
mov dword [edi + 0x10], ebx
jmp 0x41503c
cmp ecx, ebx
jbe 0x415027
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
push ebx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov eax, edi
call fcn.00415560
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
call dword [0x443834]
mov eax, edi
call fcn.0041c4a0
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov byte [esp + 0x2c], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
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, edi
call fcn.0041c4a0
mov esi, dword [eax]
call fcn.00413430
jmp 0x4151b8
mov eax, dword [edi + 0x8c]
lea esi, [edi + 0x80]
mov dword [esp + 0x34], esi
cmp eax, dword [esi + 0x10]
jbe 0x4150a3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [esi + 0xc]
cmp ebp, dword [esi + 0x10]
jbe 0x4150b1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esi]
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x4150c1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
test edi, edi
je 0x4150cb
cmp edi, eax
je 0x4150d5
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call esi
jmp 0x4150db
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, ebx
je 0x4151b8
test edi, edi
jne 0x415149
call esi
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4150f2
call esi
mov eax, dword [ebp]
lea esi, [esp + 0x18]
call fcn.00413410
mov byte [esp + 0x28], 3
mov edx, dword [esp + 0x30]
push edx
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
mov ecx, esi
sete bl
mov byte [esp + 0x28], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test bl, bl
jne 0x415151
test edi, edi
jne 0x41514d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x41513d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x34]
add ebp, 4
jmp 0x4150b3
mov eax, dword [edi]
jmp 0x4150eb
mov eax, dword [edi]
jmp 0x415132
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test edi, edi
jne 0x4151d8
call ebx
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x415166
call ebx
mov esi, dword [ebp]
test esi, esi
je 0x415193
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x415182
mov dword [esi + 4], 0
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push esi
call sub.mfc90u.dll_delete
add esp, 4
test edi, edi
jne 0x4151dc
call ebx
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4151a2
call ebx
mov esi, dword [esp + 0x34]
push ebp
push edi
lea edi, [esp + 0x20]
mov dword [ebp], 0
call fcn.00415500
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]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi]
jmp 0x41515f
mov eax, dword [edi]
jmp 0x41519b