Function at 0x140e49e0
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1888
call fcn.140e5dd0
mov eax, dword [0x140ea52c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1854], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
push 0x20a
mov dword [ebp - 0x1850], eax
mov dword [eax], edi
lea eax, [ebp - 0x20e]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x1834], esi
mov dword [ebp - 0x1848], ecx
mov word [ebp - 0x210], dx
call sub.msvcrt.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x140e4a45
sub eax, edx
sar eax, 1
mov ebx, eax
mov dword [ebp - 0x184c], ebx
cmp ebx, 0x104
jb 0x140e4a7c
pop edi
pop esi
mov eax, 0x57
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.140e5dbe
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 0x1829], 0
mov dword [ebp - 0x1830], esi
cmp ebx, 2
jbe 0x140e4ac1
cmp word [esi], 0x5c
je 0x140e4ac1
cmp word [esi + 2], 0x3a
je 0x140e4ac1
push 0x106
lea ecx, [ebp - 0x210]
push ecx
push esi
push 1
call fcn.140e48a0
test al, al
je 0x140e4ac8
lea edx, [ebp - 0x210]
mov dword [ebp - 0x1830], edx
jmp 0x140e4ac8
mov byte [ebp - 0x1829], 1
add ebx, 0x106
lea eax, [ebx + ebx]
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
mov eax, 0xcd44
mov word [ebp - 0x1824], ax
mov al, 0xc2
add esp, 4
mov ecx, 0x11d0
mov dword [ebp - 0x1828], 0xaac56b
mov word [ebp - 0x1822], cx
mov byte [ebp - 0x1820], 0x8c
mov byte [ebp - 0x181f], al
mov byte [ebp - 0x181e], 0
mov byte [ebp - 0x181d], 0xc0
mov byte [ebp - 0x181c], 0x4f
mov byte [ebp - 0x181b], al
mov byte [ebp - 0x181a], 0x95
mov byte [ebp - 0x1819], 0xee
mov byte [ebp - 0x182a], 1
cmp esi, edi
jne 0x140e4b59
pop edi
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.140e5dbe
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebx + ebx]
push eax
push edi
push esi
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x1830]
add esp, 0xc
sub ebx, 2
cmp edx, dword [ebp - 0x1834]
jne 0x140e4c47
cmp byte [ebp - 0x1829], 0
jne 0x140e4c47
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x140e4c45
mov eax, dword [ebp - 0x184c]
lea ecx, [edi + eax]
cmp ecx, ebx
jbe 0x140e4c16
push esi
call sub.msvcrt.dll_free
lea eax, [edi + edi + 0x20c]
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
add esp, 8
test esi, esi
je 0x140e4b41
lea eax, [edi + edi + 0x20c]
push eax
push 0
push esi
mov ebx, edi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x140e4c10
cmp edi, ebx
jbe 0x140e4c10
push esi
call sub.msvcrt.dll_free
add esp, 4
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.140e5dbe
mov esp, ebp
pop ebp
ret 0x10
add ebx, 0x104
mov eax, dword [ebp - 0x1834]
lea edi, [esi + edi*2]
mov edx, 0x5c
mov word [edi], dx
sub edi, eax
lea edx, [edi + 2]
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x140e4c30
mov dword [ebp - 0x1830], esi
xor edi, edi
xor eax, eax
push 0x30
mov dword [ebp - 0x1844], eax
mov dword [ebp - 0x1840], eax
mov dword [ebp - 0x183c], eax
mov dword [ebp - 0x1838], eax
mov eax, dword [ebp - 0x1830]
lea ecx, [ebp - 0x1888]
push edi
push ecx
mov dword [ebp - 0x1844], 0x10
mov dword [ebp - 0x1840], eax
mov dword [ebp - 0x183c], edi
mov dword [ebp - 0x1838], edi
call sub.msvcrt.dll_memset
mov eax, 1
add esp, 0xc
mov dword [ebp - 0x186c], eax
mov dword [ebp - 0x1874], eax
lea eax, [ebp - 0x1888]
push eax
lea ecx, [ebp - 0x1828]
push ecx
lea edx, [ebp - 0x1844]
push 0xffffffffffffffff
mov dword [ebp - 0x1888], 0x30
mov dword [ebp - 0x1884], edi
mov dword [ebp - 0x1880], edi
mov dword [ebp - 0x187c], 2
mov dword [ebp - 0x1878], edi
mov dword [ebp - 0x1868], edi
mov dword [ebp - 0x1864], edi
mov dword [ebp - 0x185c], edi
mov dword [ebp - 0x1870], edx
mov dword [ebp - 0x1860], 0x1010
call sub.WINTRUST.dll_WinVerifyTrust
mov edi, eax
cmp edi, 2
je 0x140e4d1c
cmp edi, 0x80092003
jne 0x140e4e88
cmp byte [ebp - 0x1829], 0
jne 0x140e4e88
push str.NotComDllGetInterface:_DLL_not_found_in_install_location__looking_in_current_directory
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebx + ebx]
push edx
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x1848]
add esp, 0xc
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x1858], eax
test eax, eax
je 0x140e4e88
mov ecx, dword [ebp - 0x184c]
add eax, ecx
cmp eax, ebx
jb 0x140e4dd3
push esi
lea edi, [eax + eax + 0x20c]
call sub.msvcrt.dll_free
push edi
mov dword [ebp - 0x1840], 0
call sub.msvcrt.dll_malloc
mov esi, eax
add esp, 8
test esi, esi
jne 0x140e4d9a
lea edi, [eax + 8]
jmp 0x140e4eba
push edi
push 0
push esi
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x1858]
mov edx, dword [ebp - 0x1848]
add esp, 0xc
add edi, 0x104
push edi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140e4dd3
cmp eax, edi
jb 0x140e4dd3
mov edi, 8
jmp 0x140e4eba
push 0x5c
push esi
call sub.msvcrt.dll_wcsrchr
xor edi, edi
add esp, 8
cmp eax, edi
je 0x140e4dff
mov ecx, dword [ebp - 0x1834]
sub eax, ecx
lea edx, [eax + 2]
nop
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
cmp ax, di
jne 0x140e4df0
mov dword [ebp - 0x1830], esi
cmp dword [ebp - 0x1868], edi
je 0x140e4e3b
lea eax, [ebp - 0x1888]
push eax
lea ecx, [ebp - 0x1828]
push ecx
push edi
mov dword [ebp - 0x186c], 2
call sub.WINTRUST.dll_WinVerifyTrust
mov dword [ebp - 0x1868], edi
mov dword [ebp - 0x186c], 1
xor eax, eax
mov dword [ebp - 0x1844], eax
mov dword [ebp - 0x1840], eax
mov dword [ebp - 0x183c], eax
mov dword [ebp - 0x1838], eax
lea edx, [ebp - 0x1888]
push edx
lea eax, [ebp - 0x1828]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x1844], 0x10
mov dword [ebp - 0x1840], esi
mov dword [ebp - 0x183c], edi
mov dword [ebp - 0x1838], edi
call sub.WINTRUST.dll_WinVerifyTrust
mov edi, eax
cmp edi, 0x800b010e
jg 0x140e4f46
je 0x140e4f4e
cmp edi, 0x80092026
je 0x140e4f4e
cmp edi, 0x800b0101
je 0x140e4f4e
test edi, edi
je 0x140e4f42
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x1816]
push edx
mov word [ebp - 0x1818], cx
call sub.msvcrt.dll_memset
xor eax, eax
push 0xe06
push eax
lea ecx, [ebp - 0x1016]
push ecx
mov word [ebp - 0x1018], ax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x400
lea edx, [ebp - 0x1818]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x1840]
test eax, eax
jne 0x140e4f17
mov eax, dword [ebp - 0x1834]
push edi
push eax
lea eax, [ebp - 0x1818]
push eax
lea ecx, [ebp - 0x1018]
push str.NotComDllGetInterface:__s_loading__s__WinVerifyTrust_failed_with__08x_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor bl, bl
jmp 0x140e4f54
test edi, edi
jne 0x140e4eba
mov bl, byte [ebp - 0x182a]
cmp dword [ebp - 0x1868], 0
je 0x140e4f7c
lea eax, [ebp - 0x1888]
push eax
lea ecx, [ebp - 0x1828]
push ecx
push 0
mov dword [ebp - 0x186c], 2
call sub.WINTRUST.dll_WinVerifyTrust
test bl, bl
je 0x140e4fe5
mov edx, dword [ebp - 0x1830]
push 8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x140e4fd6
push str.NotComDllGetInterface
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x140e4fc5
mov ecx, dword [ebp - 0x1850]
mov edx, dword [ebp - 0x1854]
push ecx
push edx
call eax
add esp, 8
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140e4fe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140e4fe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x140e4fe5
lea edi, [eax + 2]
test esi, esi
je 0x140e4ff2
push esi
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.140e5dbe
mov esp, ebp
pop ebp
ret 0x10