Function at 0x421830
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45231d
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebp
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x514]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x4d4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x4d4], 2
mov eax, dword [esp + 0x4e0]
mov ebp, 0x10
cmp dword [esp + 0x4f4], ebp
jae 0x4218ae
lea eax, [esp + 0x4e0]
mov edx, dword [esp + 0x4f0]
lea ecx, [esp + 0x68]
push ecx
push edx
push eax
call fcn.0043ef6f
mov ecx, dword [esp + 0x78]
add esp, 0xc
cmp dword [esp + 0x80], 8
jae 0x4218d6
lea ecx, [esp + 0x6c]
xor eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
xor esi, esi
mov dword [esp + 0xa0], eax
lea eax, [esp + 0xae]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x84]
xor edx, edx
xor eax, eax
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov byte [esp + 0xac], 0
mov dword [esp + 0x4c0], esi
mov dword [esp + 0x4c4], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x94], 0x51
mov dword [esp + 0x98], 0x423a70
mov dword [esp + 0x9c], ecx
mov word [esp + 0x2b6], dx
mov word [esp + 0xae], ax
lea ecx, [esp + 0x4f8]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x4d8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0x4d4], 4
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea esp, [esp]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x4219ce
lea eax, [esp + 0x34]
push eax
call edi
test eax, eax
jne 0x421a2f
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push eax
push 0x45c8f8
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x421a2f
push eax
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x4d8], 5
call dword [0x454388]
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x4219c0
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x421a58
lea esi, [eax - 1]
cmp esi, eax
jbe 0x421a44
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x421a52
lea eax, [esp + 0x34]
cmp byte [eax + esi], 0x5c
je 0x421a67
push 0x45c8f8
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x4d4], 6
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov eax, edi
cmp esi, ebp
jae 0x421a8b
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421a90
sub eax, edx
mov ecx, edi
cmp esi, ebp
jae 0x421aa3
lea ecx, [esp + 0x34]
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
call fcn.0043ef6f
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp dword [esp + 0x64], 8
jae 0x421ac1
lea eax, [esp + 0x50]
mov dword [esp + 0xa4], eax
mov byte [esp + 0xac], 1
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea esi, [esp + 0x84]
call fcn.00423a10
cmp eax, 1
jne 0x421b0b
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x2ba]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea edx, [esp + 0x2be]
push edx
call fcn.0043eefa
add esp, 0xc
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4d4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x4c0]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x68]
mov byte [esp + 0x4d4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x4dc]
mov byte [esp + 0x4d4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4f8]
mov dword [esp + 0x4d4], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.004390e8
add esp, 0x4c8
ret 0x3c