Function at 0x422b90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44951b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
lea eax, [esp + 0x20]
push edi
mov edi, ecx
push eax
call fcn.004275b0
xor ebx, ebx
push 0x455124
mov dword [esp + 0x54], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 8
lea ecx, [esp + 0x24]
push eax
push 0x455124
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__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x422be8
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
je 0x422d98
mov cl, byte [esp + 0x24]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
push ebx
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 + 0x34]
mov eax, dword [edx]
push eax
push ebx
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 + 0x44]
push edx
call fcn.0042da80
add esp, 0x14
mov al, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 1
mov byte [esp + 0x18], 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 eax, dword [esp + 0x28]
mov byte [esp + 0x4c], 2
cmp eax, ebx
jne 0x422c5d
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]
lea ecx, [esp + 0x14]
push ebx
push ecx
push eax
call fcn.0042f850
mov eax, dword [edi + 0x1c]
mov edx, 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]
add esp, 0xc
cmp eax, ebx
jne 0x422c7b
mov eax, edx
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
jne 0x422c85
mov ecx, edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x422d40
add edi, 0x28
lea edx, [esp + 0x14]
push edi
push edx
call fcn.0042fab0
add esp, 8
test eax, eax
jge 0x422d40
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 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_]
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x422ce8
mov al, byte [ecx - 1]
cmp al, bl
je 0x422cdc
cmp al, 0xff
je 0x422cdc
dec al
mov byte [ecx - 1], al
jmp 0x422ce8
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x422d2c
mov al, byte [ecx - 1]
cmp al, bl
je 0x422d20
cmp al, 0xff
je 0x422d20
dec al
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x422d66
mov al, byte [ecx - 1]
cmp al, bl
je 0x422d5a
cmp al, 0xff
je 0x422d5a
dec al
mov byte [ecx - 1], al
jmp 0x422d66
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x422d98
mov al, byte [ecx - 1]
cmp al, bl
je 0x422d8c
cmp al, 0xff
je 0x422d8c
dec al
mov byte [ecx - 1], al
jmp 0x422d98
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x422dd0
mov al, byte [ecx - 1]
cmp al, bl
je 0x422dc4
cmp al, 0xff
je 0x422dc4
dec al
mov byte [ecx - 1], al
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret