Function at 0x42d9b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45962e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], bx
mov esi, 0x4648b0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x55]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
lea edi, [esp + 0x58]
lea eax, [esp + 0x58]
push 0x1c
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040c5e0
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x29e]
mov word [esp + 0x29c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
lea edx, [esp + 0x29c]
push ecx
push edx
stosw word es:[edi], ax
call fcn.0040c7d0
mov al, byte [esp + 0x27]
add esp, 4
mov ebp, esp
mov dword [esp + 0x3c], esp
push ebx
mov ecx, ebp
mov byte [ebp], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x462260
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x42da9f
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x462260
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x54]
mov dword [esp + 0x370], 0xffffffff
push eax
call fcn.004034f0
mov ecx, eax
call fcn.00404370
mov cl, byte [esp + 0x13]
xor ebp, ebp
mov dword [esp + 0x360], 1
mov byte [esp + 0x34], cl
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
lea edx, [esp + 0x34]
push 0x3b
lea eax, [esp + 0x48]
push edx
push eax
mov byte [esp + 0x36c], 2
call fcn.0040bf30
mov ebx, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x42de67
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x42de67
mov dl, byte [esp + 0x13]
mov dword [esp + 0x20], ebp
mov byte [esp + 0x1c], dl
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0x7c
add eax, edx
push ecx
push eax
mov byte [esp + 0x36c], 3
call fcn.0040bf30
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebp
je 0x42de10
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 4
cmp ecx, 3
jb 0x42de10
add eax, 0x20
push 0x462268
push eax
call ebx
add esp, 8
test al, al
jne 0x42dba3
mov edx, dword [esp + 0x20]
push 0x4645ac
add edx, 0x20
push edx
call ebx
add esp, 8
test al, al
je 0x42de10
mov eax, dword [esp + 0x20]
add eax, 0x10
push eax
call fcn.0042a230
mov ecx, dword [esp + 0x24]
push 0x4648ac
push ecx
call ebx
add esp, 0xc
test al, al
je 0x42dc90
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
lea edx, [esp + 0x94]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x94]
push 8
push edx
rep stosd dword es:[edi], eax
push ebp
call esi
test eax, eax
je 0x42dc17
push ebp
lea eax, [esp + 0x17]
sub esp, 0x10
lea edx, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push edx
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_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 2
call fcn.0042a030
add esp, 0x18
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x90]
push 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x94]
push 0x1a
push eax
push ebp
call esi
test eax, eax
je 0x42dc7a
lea ecx, [esp + 0x290]
lea edx, [esp + 0x90]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea eax, [esp + 0x31]
lea edx, [esp + 0x90]
push ebp
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push edx
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_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 2
call fcn.0042a030
add esp, 0x18
push 2
call fcn.0042a4c0
push 2
call fcn.0042a9c0
add esp, 8
jmp 0x42de10
mov eax, dword [esp + 0x20]
push 0x4648a8
push eax
call ebx
add esp, 8
test al, al
je 0x42dcfa
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x90]
push 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x94]
push 5
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42de10
push ebp
lea edx, [esp + 0x36]
sub esp, 0x10
lea eax, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push eax
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_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 3
call fcn.0042a030
add esp, 0x18
jmp 0x42de10
mov ecx, dword [esp + 0x20]
push 0x4648a4
push ecx
call ebx
add esp, 8
test al, al
je 0x42dd64
push 1
lea edx, [esp + 0x94]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x94]
push 0x10
push edx
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42de10
push ebp
lea eax, [esp + 0x37]
sub esp, 0x10
lea edx, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push edx
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_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 4
call fcn.0042a030
add esp, 0x18
jmp 0x42de10
mov eax, dword [esp + 0x20]
push 0x4648a0
push eax
call ebx
add esp, 8
test al, al
je 0x42dd83
push 5
call fcn.0042b6a0
jmp 0x42de0d
mov ecx, dword [esp + 0x20]
push 0x46489c
push ecx
call ebx
add esp, 8
test al, al
je 0x42dd9f
push 7
call fcn.0042b800
jmp 0x42de0d
mov edx, dword [esp + 0x20]
push str.875432
push edx
call ebx
add esp, 8
test al, al
je 0x42ddbb
push 8
call fcn.0042be20
jmp 0x42de0d
mov eax, dword [esp + 0x20]
push 0x464894
push eax
call ebx
add esp, 8
test al, al
je 0x42ddd7
push 0xb
call fcn.0042c6c0
jmp 0x42de0d
mov ecx, dword [esp + 0x20]
push 0x464890
push ecx
call ebx
add esp, 8
test al, al
je 0x42ddf3
push 0xc
call fcn.0042cea0
jmp 0x42de0d
mov edx, dword [esp + 0x20]
push 0x46488c
push edx
call ebx
add esp, 8
test al, al
je 0x42de10
push 0x12
call fcn.0042d4b0
add esp, 4
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
mov byte [esp + 0x360], 2
je 0x42de35
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x42de24
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
add esp, 4
inc ecx
add eax, 0x10
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
jmp 0x42db06
mov edx, dword [0x467824]
mov edi, dword [0x46782c]
mov esi, edx
cmp edi, ebp
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
je 0x42def3
mov edi, ecx
cmp ecx, edi
jne 0x42def3
cmp esi, esi
jne 0x42def3
mov edi, dword [edx + 4]
mov eax, dword [0x467868]
cmp edi, eax
mov esi, edi
je 0x42deca
mov ecx, dword [esi + 8]
push ecx
mov ecx, 0x467820
call fcn.0042fc20
mov esi, dword [esi]
push ebp
lea ecx, [edi + 0xc]
call fcn.00430fa0
push edi
call sub.MFC42.DLL_operatordelete
mov eax, dword [0x467868]
add esp, 4
cmp esi, eax
mov edi, esi
jne 0x42de97
mov edx, dword [0x467824]
mov dword [edx + 4], eax
mov eax, dword [0x467824]
mov dword [0x46782c], ebp
lea edx, [esp + 0x18]
mov dword [eax], eax
mov eax, dword [0x467824]
push edx
mov ecx, 0x467820
mov dword [eax + 8], eax
call fcn.0042f500
jmp 0x42df1a
cmp ecx, esi
je 0x42df1e
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.00430980
lea eax, [esp + 0x18]
push edi
push eax
mov ecx, 0x467820
call fcn.0042f790
mov ecx, dword [esp + 0x14]
cmp ecx, esi
jne 0x42def7
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
cmp eax, edi
je 0x42df62
lea esi, [eax + 4]
mov eax, dword [esi]
cmp eax, ebp
je 0x42df4c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42df43
cmp al, 0xff
je 0x42df43
dec al
mov byte [ecx], al
jmp 0x42df4c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
add esi, 0x10
lea ecx, [esi - 4]
cmp ecx, edi
jne 0x42df29
mov eax, dword [esp + 0x38]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x4c]
add esp, 4
cmp ecx, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
je 0x42df9b
mov al, byte [ecx - 1]
test al, al
je 0x42df91
cmp al, 0xff
je 0x42df91
dec al
mov byte [ecx - 1], al
jmp 0x42df9b
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x354
ret