Function at 0x421f70
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4494c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
mov eax, dword [0x456b00]
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x58], 1
mov dword [esp + 0x14], eax
call fcn.0042a230
mov dl, byte [esp + 0x60]
sub esp, 0xc
mov esi, esp
mov dword [esp + 0x28], esp
push 0
mov ecx, esi
mov byte [esi], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea edx, [esp + 0x6c]
mov ecx, dword [eax]
push ecx
push 0
push edx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
lea eax, [esp + 0x4c]
push eax
call fcn.00426850
mov cl, byte [esp + 0x50]
add esp, 4
mov esi, esp
mov dword [esp + 0x28], esp
push 0
mov byte [esp + 0x68], 2
mov byte [esi], cl
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esp + 0x4c]
mov eax, dword [edx]
push eax
push 0
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
lea edx, [esp + 0x2c]
push edx
call fcn.00426960
mov al, byte [esp + 0x30]
add esp, 4
mov esi, esp
mov dword [esp + 0x28], esp
push 0
mov ecx, esi
mov byte [esp + 0x68], 3
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea eax, [esp + 0x2c]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
call fcn.0042e440
add esp, 0x10
test eax, eax
je 0x422073
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042fdd0
jmp 0x4220b9
mov dl, byte [esp + 0x1c]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
push 0
mov ecx, esi
mov byte [esi], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea edx, [esp + 0x2c]
mov ecx, dword [eax]
push ecx
push 0
push edx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
call fcn.0042e300
add esp, 0x10
test eax, eax
je 0x4220bc
lea eax, [esp + 0x1c]
push eax
call fcn.0042fc70
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
call fcn.00430090
lea edx, [esp + 0x20]
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
add esp, 0x10
mov edi, dword [esp + 0x7c]
mov byte [esp + 0x54], 4
xor ebp, ebp
cmp dword [esp + 0x10], 4
jne 0x42210b
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4220fc
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422191
mov dl, byte [esp + 0x2c]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x8c], esp
push 0
mov ecx, esi
mov byte [esi], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea edx, [esp + 0x3c]
mov ecx, dword [eax]
push ecx
push 0
push edx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
sub esp, 0x10
lea eax, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x78], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov ecx, edi
mov byte [esp + 0x74], 4
call fcn.0042b9a0
test eax, eax
setne bl
test bl, bl
jne 0x422193
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
mov dword [0x457ed0], 7
call fcn.0042a1f0
add esp, 4
inc ebp
cmp ebp, 2
jge 0x422193
jmp 0x4220e8
mov bl, 1
mov ecx, dword [esp + 0x80]
test bl, bl
mov byte [ecx], bl
jne 0x4221fe
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x70]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
xor al, al
jmp 0x42232c
mov dl, byte [esp + 0x2c]
sub esp, 0x10
mov esi, esp
xor edi, edi
mov dword [esp + 0x8c], esp
push edi
mov ecx, esi
mov byte [esi], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea edx, [esp + 0x3c]
mov ecx, dword [eax]
push ecx
push edi
push edx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x24]
call fcn.00413ca0
mov ecx, dword [esp + 0x30]
mov bl, al
cmp ecx, edi
je 0x422262
mov al, byte [ecx - 1]
test al, al
je 0x422256
cmp al, 0xff
je 0x422256
dec al
mov byte [ecx - 1], al
jmp 0x422262
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edi
cmp ecx, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
je 0x422294
mov al, byte [ecx - 1]
test al, al
je 0x422288
cmp al, 0xff
je 0x422288
dec al
mov byte [ecx - 1], al
jmp 0x422294
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], edi
cmp ecx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
je 0x4222c6
mov al, byte [ecx - 1]
test al, al
je 0x4222ba
cmp al, 0xff
je 0x4222ba
dec al
mov byte [ecx - 1], al
jmp 0x4222c6
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], edi
cmp ecx, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
je 0x4222f8
mov al, byte [ecx - 1]
test al, al
je 0x4222ec
cmp al, 0xff
je 0x4222ec
dec al
mov byte [ecx - 1], al
jmp 0x4222f8
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x60], edi
cmp ecx, edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
je 0x42232a
mov al, byte [ecx - 1]
test al, al
je 0x42231e
cmp al, 0xff
je 0x42231e
dec al
mov byte [ecx - 1], al
jmp 0x42232a
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 0x28