Function at 0x785427e0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x8184
call fcn.78545f80
mov eax, dword [0x785ba2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x78521998
mov ebx, ecx
call esi
test eax, eax
jne 0x78542816
xor eax, eax
inc eax
jmp 0x785429b6
push 0x7852197c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x8144], eax
test eax, eax
je 0x7854280e
push 0x78521964
call esi
test eax, eax
je 0x78542842
push 0x7852194c
call esi
test eax, eax
jne 0x7854280e
push edi
mov edi, 0x1f40
push edi
lea eax, [ebp - 0x7f0c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x785429b2
cmp eax, edi
jae 0x785429b2
push edi
lea eax, [ebp - 0x408c]
push eax
lea eax, [ebp - 0x7f0c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x785429b2
cmp eax, edi
jae 0x785429b2
lea eax, [ebp - 0x408c]
push 0x5c
push eax
call sym.MSVCR90.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
je 0x785429b2
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x408c]
push eax
call sym.MSVCR90.dll_wcslen
pop ecx
mov dword [ebp - 0x8140], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x785429b2
cmp eax, esi
jae 0x785429b2
or ebx, 0xffffffff
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x7854290c
push ebx
push 0x78521948
lea eax, [ebp - 0x20c]
push esi
push eax
call sym.MSVCR90.dll_wcsncat_s
add esp, 0x10
test eax, eax
jne 0x785429b2
lea eax, [ebp - 0x20c]
push eax
call sym.MSVCR90.dll_wcslen
pop ecx
cmp dword [ebp - 0x8140], eax
jne 0x7854293a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x408c]
push eax
call sym.MSVCR90.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x78542973
push 0x3c
lea eax, [ebp - 0x8180]
push 0
push eax
mov dword [ebp - 0x8184], 0x40
call sym.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x8184]
push eax
push 0x78521930
push 2
push 0
push 0
call dword [ebp - 0x8144]
test eax, eax
jne 0x78542977
xor eax, eax
jmp 0x785429b5
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x785429b2
cmp eax, esi
jae 0x785429b2
cmp word [ebp + eax*2 - 0x20e], 0x5c
push ebx
lea eax, [ebp - 0x20c]
je 0x785429c4
push 0x7852191c
push esi
push eax
call sym.MSVCR90.dll_wcsncat_s
add esp, 0x10
test eax, eax
je 0x785429cb
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.7858dbbe
leave
ret
push 0x7852190c
jmp 0x785429a4
lea eax, [ebp - 0x20c]
push eax
call sym.MSVCR90.dll_wcslen
push eax
lea eax, [ebp - 0x408c]
push eax
lea eax, [ebp - 0x20c]
push eax
call sym.MSVCR90.dll__wcsnicmp
add esp, 0x10
test eax, eax
je 0x785429b2
and dword [ebp - 0x813c], 0
push 0x228
lea eax, [ebp - 0x8134]
push 0
push eax
call sym.MSVCR90.dll_memset
push ebx
push 0x785218d4
lea eax, [ebp - 0x408c]
push edi
push eax
call sym.MSVCR90.dll_wcsncat_s
add esp, 0x1c
test eax, eax
jne 0x785429b2
lea eax, [ebp - 0x813c]
push eax
lea eax, [ebp - 0x408c]
push eax
call sym.MSVCR90.dll__wfindfirst64i32
pop ecx
pop ecx
cmp eax, ebx
je 0x78542a4b
push eax
call sym.MSVCR90.dll__findclose
pop ecx
jmp 0x785429b2
xor eax, eax
jmp 0x78542973