Function at 0x4133c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x416fab
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x42202c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, 0x5c
push esi
push str.AdvApi32.dll
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x41358a
xor ebx, ebx
cmp word [0x4243b0], bx
jne 0x4134a0
push 0x400
push 0x4243b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x4243b0
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x413444
mov word [eax + 2], bx
push 0x400
push 0x424bb0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x413472
cmp word [eax*2 + 0x424bae], si
je 0x413472
mov word [eax*2 + 0x424bb0], si
mov word [eax*2 + 0x424bb2], bx
push 0x400
push 0x4253b0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
jbe 0x4134a0
cmp word [eax*2 + 0x4253ae], si
je 0x4134a0
mov word [eax*2 + 0x4253b0], si
mov word [eax*2 + 0x4253b2], bx
push 0x424bb0
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.AdvApi32.dll
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x4134d1
lea eax, [esp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x413574
push 0x4253b0
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov bl, 1
push str.AdvApi32.dll
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], bl
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x413517
lea eax, [esp + 0x14]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x413565
push 0x4243b0
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.AdvApi32.dll
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x413552
lea eax, [esp + 0x30]
push eax
call edi
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x70], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x413595
push str.AdvApi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004158da
add esp, 0x64
ret