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

Disassembly:
push 0xffffffffffffffff
push 0x45e2b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [esp + 0x1a4], ebx
call dword [sym.imp.MSVCRT.dll_time]
mov esi, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x9d]
mov byte [esp + 0x9c], bl
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x98]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x476874]
mov ecx, esi
sub ecx, edx
cmp ecx, 0x1b7740
jle 0x414b2b
push esi
mov dword [0x476874], esi
call dword [sym.imp.MSVCRT.dll_srand]
mov esi, dword [sym.imp.MSVCRT.dll_rand]
add esp, 4
call esi
cdq
mov ecx, 0x64
idiv ecx
push edx
call esi
cdq
mov ecx, 0x64
idiv ecx
push edx
push 0x471860
push 0x476878
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov esi, 2
push ebx
push ebx
lea edx, [esp + 0xa0]
push 0x476878
push edx
push 0x471824
call fcn.00402f40
add esp, 0x14
cmp eax, 0xfffffff4
je 0x414b0c
cmp eax, 1
je 0x414b2b
mov ecx, esi
dec esi
test ecx, ecx
jne 0x414ada
cmp eax, 1
je 0x414b2b
push 1
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1a4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x414e66
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x98]
push ecx
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edi, 0x476878
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1a0], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x476878
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea ecx, [esp + 0x1a8]
lea edx, [esp + 0x24]
push ecx
push 0x471818
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov al, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a4], 2
mov byte [esp + 0x38], 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_]
lea ecx, [esp + 0xf]
mov byte [esp + 0x1a0], 3
push ecx
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a4], 6
call fcn.004379c0
mov dword [esp + 0x74], ebx
push ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov byte [esp + 0x1a4], 7
mov dword [esp + 0x14], esp
mov eax, esp
jne 0x414c1e
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [eax], ecx
lea ecx, [esp + 0x38]
call fcn.00437ba0
cmp al, bl
je 0x414d81
push ecx
lea ecx, [esp + 0x38]
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], 0x471810
call fcn.00438020
cmp al, bl
je 0x414d81
lea ecx, [esp + 0x34]
call fcn.00438e40
push ecx
lea ecx, [esp + 0x38]
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], 0x471800
call fcn.00438020
cmp al, bl
je 0x414d81
mov eax, dword [esp + 0x28]
push ecx
cmp eax, ebx
mov dword [esp + 0x14], esp
mov ecx, esp
jne 0x414c8a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [ecx], eax
lea ecx, [esp + 0x38]
call fcn.00438090
cmp al, bl
je 0x414d81
lea edx, [esp + 0x88]
lea ecx, [esp + 0x34]
push edx
call fcn.00414e90
mov eax, dword [esp + 0x8c]
cmp eax, ebx
jne 0x414cbe
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x1bc]
add esp, 4
cmp ecx, eax
mov byte [esp + 0x1a0], 7
push 1
lea ecx, [esp + 0x8c]
ja 0x414d7b
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a0], 0xa
call fcn.0040b0f0
lea ecx, [esp + 0x78]
call fcn.0040b050
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x1a4], 9
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 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a4], 2
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 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a4], 1
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 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a4], bl
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 1
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1a4], 0xffffffff
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 eax, 1
jmp 0x414e68
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a0], 0xc
call fcn.0040b0f0
lea ecx, [esp + 0x78]
call fcn.0040b050
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x1a4], 0xb
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 ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x414dd3
mov al, byte [ecx - 1]
cmp al, bl
je 0x414dc9
cmp al, 0xff
je 0x414dc9
dec al
mov byte [ecx - 1], al
jmp 0x414dd3
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x414e03
mov al, byte [ecx - 1]
cmp al, bl
je 0x414df9
cmp al, 0xff
je 0x414df9
dec al
mov byte [ecx - 1], al
jmp 0x414e03
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x414e33
mov al, byte [ecx - 1]
cmp al, bl
je 0x414e29
cmp al, 0xff
je 0x414e29
dec al
mov byte [ecx - 1], al
jmp 0x414e33
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x414e66
mov al, byte [ecx - 1]
cmp al, bl
je 0x414e5c
cmp al, 0xff
je 0x414e5c
dec al
mov byte [ecx - 1], al
jmp 0x414e66
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x198]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x198
ret 0x14