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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44aa23
push eax
mov eax, 0x2ef4
mov dword fs:[0], esp
call fcn.00447190
mov al, byte [0x4582d1]
push ebp
push esi
push edi
test al, al
je 0x43bf0a
mov al, byte [0x457f08]
xor ebp, ebp
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 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]
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push ebp
push 0x457f08
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 eax, dword [esp + 0x18]
mov dword [esp + 0x2f08], ebp
cmp eax, ebp
je 0x43bef3
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x6a]
mov word [esp + 0x68], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x68]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x400
ja 0x43bef3
cmp eax, ebp
je 0x43bef3
mov cl, byte [esp + 0xf]
push ebp
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
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_]
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x20]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x43bcda
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x68]
push esi
push eax
push ecx
call fcn.00401270
add esp, 0xc
lea ecx, [esp + 0x20]
push 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__::_Eos_unsigned_int_]
mov dl, byte [esp + 0x10]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x50], esp
push ebp
mov ecx, esi
mov byte [esp + 0x2f1c], 1
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 + 0x20]
mov ecx, dword [eax]
push ecx
push ebp
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 + 0x54]
push eax
call fcn.00426960
lea ecx, [esp + 0x58]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov byte [esp + 0x2f28], 2
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, 0x20
lea ecx, [esp + 0x868]
mov byte [esp + 0x2f08], 3
call fcn.0042b7c0
mov cl, byte [esp + 0x30]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x50], esp
push ebp
mov byte [esp + 0x2f1c], 4
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 + 0x40]
mov eax, dword [edx]
push eax
push ebp
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_]
sub esp, 0x10
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
mov byte [esp + 0x2f2c], 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__]
lea ecx, [esp + 0x888]
mov byte [esp + 0x2f28], 4
call fcn.0042be30
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.0043b610
add esp, 8
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2f08], 6
cmp eax, ebp
jne 0x43bdd7
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 0x43be09
mov ecx, dword [esp + 0x5c]
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]
cmp ecx, ebp
jne 0x43bdf2
mov ecx, edx
mov eax, dword [esp + 0x34]
cmp eax, ebp
jne 0x43bdfc
mov eax, edx
push ebp
push 1
push ecx
push eax
call fcn.00427e70
add esp, 0x10
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f0c], 4
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_]
lea ecx, [esp + 0x868]
mov byte [esp + 0x2f08], 3
call fcn.0042b900
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x43be57
mov al, byte [ecx - 1]
test al, al
je 0x43be4b
cmp al, 0xff
je 0x43be4b
dec al
mov byte [ecx - 1], al
jmp 0x43be57
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x34], ebp
cmp ecx, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
je 0x43be89
mov al, byte [ecx - 1]
test al, al
je 0x43be7d
cmp al, 0xff
je 0x43be7d
dec al
mov byte [ecx - 1], al
jmp 0x43be89
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], ebp
cmp ecx, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
je 0x43bebb
mov al, byte [ecx - 1]
test al, al
je 0x43beaf
cmp al, 0xff
je 0x43beaf
dec al
mov byte [ecx - 1], al
jmp 0x43bebb
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ebp
cmp ecx, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
je 0x43beef
mov al, byte [ecx - 1]
test al, al
je 0x43bee3
cmp al, 0xff
je 0x43bee3
dec al
mov byte [ecx - 1], al
mov al, 1
jmp 0x43bf0c
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov al, 1
jmp 0x43bf0c
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x2f0c], 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
mov ecx, dword [esp + 0x2f00]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x2f00
ret