Function at 0x408fe0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41a9a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x44]
mov dword [esp + 0x40], ebx
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov cl, byte [esp + 0xf]
push ebx
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_]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x44]
push edx
call esi
add esp, 4
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
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_unsigned_short_int_const___unsigned_int_]
lea ecx, [esp + 0x20]
mov dword [esp + 0x84c], ebx
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__::_Freeze_void_]
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x409078
xor eax, eax
jmp 0x40907f
mov ecx, dword [esp + 0x28]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x4090a0
push 0x4261b8
call esi
add esp, 4
lea ecx, [esp + 0x20]
push eax
push 0x4261b8
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 esi, dword [sym.imp.MSVCRT.dll__waccess]
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], 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_]
lea eax, [esp + 0x30]
mov byte [esp + 0x84c], 1
push eax
push 8
call fcn.00407210
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
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, 0x14
mov eax, dword [esp + 0x14]
mov byte [esp + 0x84c], 2
cmp eax, ebx
jne 0x4090f5
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 ebx
push eax
call esi
add esp, 8
test eax, eax
jne 0x409170
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x409126
mov al, byte [ecx - 1]
cmp al, bl
je 0x40911a
cmp al, 0xff
je 0x40911a
dec al
mov byte [ecx - 1], al
jmp 0x409126
lea eax, [ecx - 2]
push eax
call fcn.00416910
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x84c], bl
je 0x40915f
mov al, byte [ecx - 1]
cmp al, bl
je 0x409153
cmp al, 0xff
je 0x409153
dec al
mov byte [ecx - 1], al
jmp 0x40915f
add ecx, 0xfffffffe
push ecx
call fcn.00416910
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
jmp 0x4090a6
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x40917d
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.MSVCRT.dll__wmkdir]
mov esi, dword [esp + 0x858]
mov al, byte [esp + 0x14]
add esp, 4
mov ecx, esi
mov byte [esi], al
push ebx
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 + 0x10]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebx
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_]
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x850], 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 + 0x34]
mov byte [esp + 0x850], 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_]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x409201
mov al, byte [ecx - 1]
cmp al, bl
je 0x4091f5
cmp al, 0xff
je 0x4091f5
dec al
mov byte [ecx - 1], al
jmp 0x409201
add ecx, 0xfffffffe
push ecx
call fcn.00416910
add esp, 4
mov ecx, dword [esp + 0x844]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x844
ret