Function at 0x42be20
Capabilities:
Get common file path
Get startup folder
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45950e
push eax
mov eax, 0x1130
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 + 0x99]
mov edx, dword [0x4647a0]
rep stosd dword es:[edi], eax
mov ecx, dword [0x46479c]
push 1
stosw word es:[edi], ax
mov eax, dword [0x464798]
mov dword [esp + 0xa0], ecx
mov cx, word [0x4647a8]
mov dword [esp + 0x9c], eax
mov eax, dword [0x4647a4]
mov dword [esp + 0xa4], edx
mov dl, byte [0x4647aa]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x9c]
push 0x13
push eax
mov word [esp + 0xb4], cx
mov byte [esp + 0xb6], dl
call fcn.0040c5e0
mov edx, dword [0x46478c]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0xd9]
rep stosd dword es:[edi], eax
mov ecx, dword [0x464788]
mov eax, dword [0x464790]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xd8], ecx
mov cl, byte [0x464794]
push 1
lea edx, [esp + 0xdc]
push 0xd
push edx
mov dword [esp + 0xec], eax
mov byte [esp + 0xf0], cl
call fcn.0040c5e0
xor ebx, ebx
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x242]
mov word [esp + 0x240], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x240]
push eax
push ecx
call fcn.0040c7d0
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x11d]
mov esi, 0x464768
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 7
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
push 1
lea edx, [esp + 0x120]
push 0x1e
push edx
movsw word es:[edi], word [esi]
call fcn.0040c5e0
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x18e]
mov word [esp + 0x18c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x128]
lea ecx, [esp + 0x18c]
push eax
push ecx
call fcn.0040c7d0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x976]
mov word [esp + 0x974], bx
add esp, 0x34
lea edx, [esp + 0x940]
rep stosd dword es:[edi], eax
push 1
push 5
push edx
push ebx
mov word [esp + 0x192], bx
mov word [esp + 0x186], bx
mov word [esp + 0x17a], bx
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42c69a
lea eax, [esp + 0x98]
lea ecx, [esp + 0x940]
push eax
push ecx
call fcn.0040c7d0
lea edx, [esp + 0x948]
push ebx
push edx
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 0x10
test eax, eax
jne 0x42c69a
mov al, byte [esp + 0x13]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x14], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x1148], ebx
mov byte [esp + 0x24], cl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x2f2]
mov word [esp + 0x2f0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd42]
mov word [esp + 0xd40], bx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x940]
mov byte [esp + 0x1148], 1
stosw word es:[edi], ax
push edx
lea eax, [esp + 0xd44]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x6f0]
lea edx, [esp + 0xd40]
push ecx
push edx
call dword [0x4672a4]
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
je 0x42c5af
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [esp + 0x71c], 0x2e
je 0x42c590
lea eax, [esp + 0x228]
lea ecx, [esp + 0x71c]
push eax
lea edx, [esp + 0x944]
push ecx
push edx
lea eax, [esp + 0x2fc]
push str._s_s_s
push eax
call ebp
lea ecx, [esp + 0x304]
push ebx
push ecx
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 0x1c
test eax, eax
jne 0x42c590
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x6c], 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 + 0x2f0]
push eax
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 0x42c17a
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x2f0]
push esi
push ecx
push edx
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_]
lea eax, [esp + 0x68]
push 0x4646ec
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x1154], 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 + 0x6c]
mov byte [esp + 0x114c], 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 0x42c1ba
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 0x42c252
cmp eax, ebx
jne 0x42c1da
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 edx, [esp + 0x13c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 8
test eax, eax
jne 0x42c284
push ebx
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [esp + 0x160]
add esp, 4
sub ecx, eax
cmp ecx, 0x93a80
jle 0x42c26f
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x42c21c
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 0x42c230
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 + 0x2f4]
push eax
push edx
call dword [0x467350]
test eax, eax
je 0x42c284
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
push 1
push ecx
jmp 0x42c27b
cmp eax, ebx
jne 0x42c25b
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 ecx, [esp + 0x2f4]
push eax
push ecx
call dword [0x467350]
test eax, eax
je 0x42c284
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x38]
push edx
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.0040ced0
lea ecx, [esp + 0x160]
lea edx, [esp + 0x71c]
push ecx
lea eax, [esp + 0x944]
push edx
push eax
lea ecx, [esp + 0x2fc]
push str._s_s_s
push ecx
call ebp
mov dl, byte [esp + 0x27]
add esp, 0x14
lea ecx, [esp + 0x78]
mov byte [esp + 0x78], dl
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 eax, [esp + 0x2f0]
push eax
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 0x42c302
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x2f0]
push esi
push ecx
push edx
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_]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
push 1
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1154], 5
call fcn.0040ced0
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x114c], 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 + 0x16c]
lea eax, [esp + 0x71c]
push edx
lea ecx, [esp + 0x944]
push eax
push ecx
lea edx, [esp + 0x2fc]
push str._s_s_s
push edx
call ebp
mov al, byte [esp + 0x27]
add esp, 0x14
lea ecx, [esp + 0x88]
mov byte [esp + 0x88], 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 + 0x2f0]
push ecx
call edi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x88]
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 0x42c3c0
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x2f0]
push esi
push edx
push eax
call fcn.004091c0
add esp, 0xc
lea ecx, [esp + 0x88]
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 + 0x1c]
lea ecx, [esp + 0x88]
push ecx
push 1
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1154], 6
call fcn.0040ced0
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x114c], 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 + 0x178]
lea ecx, [esp + 0x71c]
push eax
lea edx, [esp + 0x944]
push ecx
push edx
lea eax, [esp + 0x2fc]
push str._s_s_s
push eax
call ebp
mov cl, byte [esp + 0x27]
add esp, 0x14
mov byte [esp + 0x58], cl
lea ecx, [esp + 0x58]
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 + 0x2f0]
push edx
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 0x42c475
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x2f0]
push esi
push eax
push ecx
call fcn.004091c0
add esp, 0xc
lea ecx, [esp + 0x58]
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 eax, dword [esp + 0x1c]
lea edx, [esp + 0x58]
push edx
push 1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1154], 7
call fcn.0040ced0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x114c], 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 ecx, [esp + 0x184]
lea edx, [esp + 0x71c]
push ecx
lea eax, [esp + 0x944]
push edx
push eax
lea ecx, [esp + 0x2fc]
push str._s_s_s
push ecx
call ebp
mov dl, byte [esp + 0x27]
add esp, 0x14
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], dl
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 eax, [esp + 0x2f0]
push eax
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 0x42c525
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x2f0]
push esi
push ecx
push edx
call fcn.004091c0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x5c], esi
add esp, 0xc
mov word [eax + esi*2], bx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
push ecx
push 1
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1154], 8
call fcn.0040ced0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x114c], 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 + 0x1148], 1
cmp ecx, ebx
je 0x42c584
mov al, byte [ecx - 1]
cmp al, bl
je 0x42c578
cmp al, 0xff
je 0x42c578
dec al
mov byte [ecx - 1], al
jmp 0x42c584
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 ecx, dword [esp + 0x34]
lea eax, [esp + 0x6f0]
push eax
push ecx
call dword [0x4672ac]
test eax, eax
jne 0x42c0d6
mov eax, dword [esp + 0x34]
push eax
call dword [0x4672e8]
mov edi, dword [esp + 0x1150]
lea edx, [esp + 0x24]
push edx
push edi
call fcn.00429810
add esp, 8
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42c609
mov ecx, dword [esp + 0x1c]
sub ecx, eax
sar ecx, 4
cmp esi, ecx
jae 0x42c609
push ebx
push esi
lea ecx, [esp + 0x1c]
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 0x42c5cd
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp esi, edi
mov byte [esp + 0x1148], bl
je 0x42c631
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 0x42c61c
mov esi, dword [esp + 0x28]
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp ecx, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov edi, eax
je 0x42c691
lea esi, [ecx + 4]
mov ecx, dword [esi]
cmp ecx, ebx
je 0x42c67b
mov al, byte [ecx - 1]
cmp al, bl
je 0x42c66f
cmp al, 0xff
je 0x42c66f
dec al
mov byte [ecx - 1], al
jmp 0x42c67b
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 0x42c657
mov ecx, dword [esp + 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x113c
ret