Function at 0x43f5a0
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x13f4
call fcn.00444850
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x698]
push 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x69c]
push 8
xor esi, esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43f929
mov ebx, 0x1000
mov dword [esp + 0x18], esi
push ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x400
xor eax, eax
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0x496]
mov word [esp + 0x494], si
push str..lnk
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6a0]
lea edx, [esp + 0x498]
push ecx
push str._s_s
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
lea eax, [esp + 0x8a0]
lea ecx, [esp + 0x490]
push eax
push ecx
call dword [0x4672a4]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x34], ebp
je 0x43f87f
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xdfc]
lea edx, [esp + 0x8cc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x288]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x698]
push edx
push eax
lea ecx, [esp + 0xe04]
push 0x464848
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esp + 0x48]
lea eax, [esp + 0x298]
push edx
push 0x104
lea ecx, [esp + 0xe14]
push eax
push ecx
call fcn.0040c290
add esp, 0x20
test al, al
je 0x43f861
mov dl, byte [esp + 0x288]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0
mov byte [esp + 0x18], dl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x43f861
lea ecx, [esp + 0x288]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
jne 0x43f861
test byte [esp + 0x38], 0x10
jne 0x43f861
mov edx, dword [esp + 0x54]
push 1
push esi
push esi
push edx
call fcn.00444950
mov esi, eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov ebp, edx
add esi, eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x24]
adc ebp, ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
call fcn.0040a1d0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x34]
push edx
push eax
push ecx
call fcn.0040a1d0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x44]
push edx
push eax
push ecx
call fcn.0040a1d0
mov ecx, 0xc2
xor eax, eax
lea edi, [esp + 0xb15]
mov byte [esp + 0xb14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0xb14]
push 0x30b
lea eax, [esp + 0x2b0]
push edx
push eax
call fcn.00408f30
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push ebp
push esi
lea ecx, [esp + 0xb34]
push 2
push ecx
lea edx, [esp + 0x1050]
push str._s_t_d_t_I64d_t_u_t_u_t_u_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, eax
mov eax, dword [esp + 0x6c]
add eax, ebp
add esp, 0x54
cmp eax, ebx
mov dword [esp + 0x1c], eax
jl 0x43f836
lea eax, [ebx + 0x1000]
push eax
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x14]
mov ecx, ebx
mov dword [esp + 0x34], eax
mov edi, eax
mov eax, ecx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x38]
add esp, 8
mov ecx, 0x400
xor eax, eax
lea edi, [edx + ebx]
mov ebx, dword [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ecx, ebp
add edi, edx
mov edx, ecx
lea esi, [esp + 0x1004]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [esp + 0x34]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x18], eax
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [esp + 0x8a0]
push eax
push ebp
call dword [0x4672ac]
test eax, eax
jne 0x43f659
push ebp
call dword [0x4672e8]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 0xfffffffd
jbe 0x43f89a
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebx, dword [esp + 0x1408]
mov ecx, dword [ebx + 4]
cmp ecx, esi
je 0x43f8d0
mov al, byte [ecx - 1]
test al, al
je 0x43f8d0
cmp al, 0xff
je 0x43f8d0
cmp ebp, esi
jne 0x43f8ff
dec al
pop edi
mov byte [ecx - 1], al
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
add esp, 0x13f4
ret
cmp ebp, esi
jne 0x43f8e9
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13f4
ret
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x43f8f5
cmp eax, ebp
jae 0x43f908
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebp
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov esi, dword [esp + 0x10]
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13f4
ret