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

Disassembly:
push 0xffffffffffffffff
push 0x41b994
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 0x408e78
xor eax, eax
jmp 0x408e7f
mov ecx, dword [esp + 0x28]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x408ea0
push 0x427198
call esi
add esp, 4
lea ecx, [esp + 0x20]
push eax
push 0x427198
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.00407250
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 0x408ef5
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 0x408f70
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x408f26
mov al, byte [ecx - 1]
cmp al, bl
je 0x408f1a
cmp al, 0xff
je 0x408f1a
dec al
mov byte [ecx - 1], al
jmp 0x408f26
lea eax, [ecx - 2]
push eax
call fcn.004175f0
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 0x408f5f
mov al, byte [ecx - 1]
cmp al, bl
je 0x408f53
cmp al, 0xff
je 0x408f53
dec al
mov byte [ecx - 1], al
jmp 0x408f5f
add ecx, 0xfffffffe
push ecx
call fcn.004175f0
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
jmp 0x408ea6
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x408f7d
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 0x409001
mov al, byte [ecx - 1]
cmp al, bl
je 0x408ff5
cmp al, 0xff
je 0x408ff5
dec al
mov byte [ecx - 1], al
jmp 0x409001
add ecx, 0xfffffffe
push ecx
call fcn.004175f0
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