Function at 0x42c6c0
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x459572
push eax
mov eax, 0x1118
mov dword fs:[0], esp
call fcn.00444850
push ebx
push ebp
push esi
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xbd]
mov edx, dword [0x4647e0]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4647dc]
push 1
stosb byte es:[edi], al
mov eax, dword [0x4647d8]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xc0], eax
mov eax, dword [0x4647e4]
mov dword [esp + 0xc4], ecx
mov cx, word [0x4647e8]
lea edx, [esp + 0xc0]
push 0x12
push edx
mov dword [esp + 0xd4], eax
mov word [esp + 0xd8], cx
call fcn.0040c5e0
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x95]
mov edx, dword [0x4647cc]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4647c8]
push 1
stosw word es:[edi], ax
mov eax, dword [0x4647c4]
mov dword [esp + 0x9c], ecx
mov cx, word [0x4647d4]
mov dword [esp + 0x98], eax
mov eax, dword [0x4647d0]
mov dword [esp + 0xa0], edx
mov dl, byte [0x4647d6]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x98]
push 0x13
push eax
mov word [esp + 0xb0], cx
mov byte [esp + 0xb2], dl
call fcn.0040c5e0
xor ebx, ebx
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bx
lea edx, [esp + 0x228]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xa0]
push ecx
push edx
stosw word es:[edi], ax
call fcn.0040c7d0
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x111]
mov esi, 0x4647ac
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 5
lea edi, [esp + 0x110]
push 1
lea eax, [esp + 0x114]
push 0x14
push eax
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x242], 0x5c
call fcn.0040c5e0
mov word [esp + 0x174], bx
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x176]
lea edx, [esp + 0x174]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x11c]
push ecx
push edx
stosw word es:[edi], ax
call fcn.0040c7d0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x95e]
mov word [esp + 0x95c], bx
rep stosd dword es:[edi], eax
add esp, 0x34
mov word [esp + 0x15c], bx
stosw word es:[edi], ax
push 1
lea eax, [esp + 0x92c]
push 5
push eax
push ebx
mov word [esp + 0x162], bx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42ce86
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x928]
push ecx
push edx
call fcn.0040c7d0
lea eax, [esp + 0x930]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 0x10
test eax, eax
jne 0x42ce86
mov cl, byte [esp + 0x13]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], cl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dl, byte [esp + 0x13]
mov dword [esp + 0x1130], ebx
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, 0xff
lea edi, [esp + 0x2da]
mov word [esp + 0x2d8], bx
mov word [esp + 0xd28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd2a]
mov byte [esp + 0x1130], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x928]
lea ecx, [esp + 0xd28]
push eax
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x6d8]
lea eax, [esp + 0xd28]
push edx
push eax
call dword [0x4672a4]
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
je 0x42cd9b
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [esp + 0x704], 0x2e
je 0x42cd7c
lea ecx, [esp + 0x210]
lea edx, [esp + 0x704]
push ecx
lea eax, [esp + 0x92c]
push edx
push eax
lea ecx, [esp + 0x2e4]
push str._s_s_s
push ecx
call ebp
lea edx, [esp + 0x2ec]
push ebx
push edx
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 0x1c
test eax, eax
jne 0x42cd7c
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x7c], 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_]
lea ecx, [esp + 0x2d8]
push ecx
call edi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x78]
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 0x42ca29
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x2d8]
push esi
push edx
push eax
call fcn.004091c0
add esp, 0xc
lea ecx, [esp + 0x78]
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_]
lea ecx, [esp + 0x78]
push 0x4646ec
lea edx, [esp + 0x3c]
push ecx
push edx
mov byte [esp + 0x113c], 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___unsigned_short_int_const__
add esp, 0xc
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1134], 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_]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x42ca69
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 dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x3c]
jne 0x42cb01
cmp eax, ebx
jne 0x42ca89
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]
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 8
test eax, eax
jne 0x42cb33
push ebx
call dword [sym.imp.MSVCRT.dll_time]
mov edx, dword [esp + 0x148]
add esp, 4
sub edx, eax
cmp edx, 0x93a80
jle 0x42cb1e
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x42cacb
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 [0x4672bc]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x42cadf
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
lea eax, [esp + 0x2e0]
push eax
call dword [0x467350]
test eax, eax
je 0x42cb33
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push 1
push edx
jmp 0x42cb2a
cmp eax, ebx
jne 0x42cb0a
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
lea edx, [esp + 0x2dc]
push eax
push edx
call dword [0x467350]
test eax, eax
je 0x42cb33
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
push 1
push ecx
lea ecx, [esp + 0x20]
call fcn.0040ced0
lea edx, [esp + 0x148]
lea eax, [esp + 0x704]
push edx
lea ecx, [esp + 0x92c]
push eax
push ecx
lea edx, [esp + 0x2e4]
push str._s_s_s
push edx
call ebp
mov al, byte [esp + 0x27]
add esp, 0x14
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], 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_]
lea ecx, [esp + 0x2d8]
push ecx
call edi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x68]
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 0x42cbb1
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x2d8]
push esi
push edx
push eax
call fcn.004091c0
add esp, 0xc
lea ecx, [esp + 0x68]
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 edx, dword [esp + 0x2c]
lea ecx, [esp + 0x68]
push ecx
push 1
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x113c], 5
call fcn.0040ced0
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1134], 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 eax, [esp + 0x154]
lea ecx, [esp + 0x704]
push eax
lea edx, [esp + 0x92c]
push ecx
push edx
lea eax, [esp + 0x2e4]
push str._s_s_s
push eax
call ebp
mov cl, byte [esp + 0x27]
add esp, 0x14
mov byte [esp + 0x48], cl
lea ecx, [esp + 0x48]
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_]
lea edx, [esp + 0x2d8]
push edx
call edi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x48]
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 0x42cc61
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x2d8]
push esi
push eax
push ecx
call fcn.004091c0
mov edx, dword [esp + 0x58]
mov dword [esp + 0x5c], esi
add esp, 0xc
mov word [edx + esi*2], bx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
push eax
push 1
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x113c], 6
call fcn.0040ced0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1134], 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 edx, [esp + 0x15e]
lea eax, [esp + 0x704]
push edx
lea ecx, [esp + 0x92c]
push eax
push ecx
lea edx, [esp + 0x2e4]
push str._s_s_s
push edx
call ebp
mov al, byte [esp + 0x27]
add esp, 0x14
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], 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_]
lea ecx, [esp + 0x2d8]
push ecx
call edi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x58]
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 0x42cd11
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x2d8]
push esi
push edx
push eax
call fcn.004091c0
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x6c], esi
add esp, 0xc
mov word [ecx + esi*2], bx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x58]
push edx
push 1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x113c], 7
call fcn.0040ced0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1134], 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_]
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x1130], 1
cmp ecx, ebx
je 0x42cd70
mov al, byte [ecx - 1]
cmp al, bl
je 0x42cd64
cmp al, 0xff
je 0x42cd64
dec al
mov byte [ecx - 1], al
jmp 0x42cd70
lea eax, [ecx - 2]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x6d8]
push ecx
push edx
call dword [0x4672ac]
test eax, eax
jne 0x42c985
mov eax, dword [esp + 0x34]
push eax
call dword [0x4672e8]
mov edi, dword [esp + 0x1138]
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00429810
add esp, 8
xor esi, esi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42cdf5
mov ecx, dword [esp + 0x2c]
sub ecx, eax
sar ecx, 4
cmp esi, ecx
jae 0x42cdf5
push ebx
push esi
lea ecx, [esp + 0x2c]
call fcn.0042f100
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x48], esp
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_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
push edi
call fcn.0042a030
add esp, 0x18
inc esi
jmp 0x42cdb9
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov byte [esp + 0x1130], bl
je 0x42ce1d
push 1
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_]
add esi, 0x10
cmp esi, edi
jne 0x42ce08
mov esi, dword [esp + 0x18]
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov edi, eax
je 0x42ce7d
lea esi, [ecx + 4]
mov ecx, dword [esi]
cmp ecx, ebx
je 0x42ce67
mov al, byte [ecx - 1]
cmp al, bl
je 0x42ce5b
cmp al, 0xff
je 0x42ce5b
dec al
mov byte [ecx - 1], al
jmp 0x42ce67
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
add esi, 0x10
lea edx, [esi - 4]
cmp edx, edi
jne 0x42ce43
mov ecx, dword [esp + 0x28]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1128]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1124
ret