Function at 0x103390b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x578
mov eax, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 1
push 0xb
push edi
mov dword [ebp - 4], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ecx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], edi
call dword [sym.imp.SHELL32.dll_SHCloneSpecialIDList]
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov ebx, eax
xor esi, esi
push esi
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
call fcn.01002834
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebx, esi
je 0x1033c69
push ebx
call dword [sym.imp.SHELL32.dll_ILFindLastID]
push eax
call dword [sym.imp.SHELL32.dll_ILClone]
push ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
call dword [sym.imp.SHELL32.dll_ILRemoveLastID]
cmp dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], esi
je 0x1033c5d
push ebx
call fcn.0103abf1
mov ebx, eax
cmp ebx, esi
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
je 0x1033c51
call dword [sym.imp.USER32.dll_CreatePopupMenu]
cmp eax, esi
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
je 0x1033c4b
mov eax, dword [ebx]
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push esi
push 0x100b864
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push ecx
push 1
push edi
push ebx
call dword [eax + 0x28]
test eax, eax
jl 0x1033c3f
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov ecx, dword [eax]
push 2
push 0x7fef
push 2
push esi
push dword [ebp - 0x51c]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x1033c2d
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x2d0
push dword [0x10460c0]
call ebx
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x7ff2
push esi
push dword [ebp - 0x51c]
call edi
push 0x400000
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x1033adb
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
push esi
push 0x16
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
je 0x1033adb
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
cmp eax, esi
je 0x1033adb
push esi
push esi
push 0x800
push dword [ebp - 0x51c]
call edi
push 0x104
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x2ce
push dword [0x10460c0]
call ebx
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x7ff0
push esi
push dword [ebp - 0x51c]
call edi
push 0x104
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x2cf
push dword [0x10460c0]
call ebx
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x7ff1
push esi
push dword [ebp - 0x51c]
call edi
cmp dword [ebp + 0xc], reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
jne 0x1033af6
push dword [ebp - 0x51c]
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
call fcn.01030727
mov edx, eax
jmp 0x1033b58
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
mov ebx, 0x401
push ebx
push dword [eax + 0x3b4]
call edi
mov eax, dword [ebp + 0xc]
push esi
push dword [ebp - 0x530]
shr eax, 0x10
push esi
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
push 0x102
push dword [ebp - 0x51c]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push esi
push 1
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push ebx
push dword [eax + 0x3b4]
call edi
mov edx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov eax, edx
sub eax, esi
je 0x1033c2d
sub eax, 0x7ff0
je 0x1033c21
dec eax
je 0x1033c1d
dec eax
je 0x1033c0e
push 0xf
xor eax, eax
pop ecx
lea edi, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
rep stosd dword es:[edi], eax
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
add edx, 0xfffffffe
movzx eax, dx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [ebp - 0x528]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x40
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 1
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [ebp - 0x528]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
or byte [ebp - 0x573], 0x40
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov ecx, dword [eax]
lea edx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push edx
push eax
call dword [ecx + 0x10]
jmp 0x1033c2d
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push 2
call fcn.01032eef
jmp 0x1033c2d
push 1
jmp 0x1033c22
push esi
mov ecx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
call fcn.010337bf
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
push dword [ebp - 0x51c]
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
push dword [ebp - 0x524]
call dword [sym.imp.SHELL32.dll_ILFree]
push dword [ebp - 0x528]
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001b01
leave
ret 8