Function at 0x1004cfa
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1017004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 0x238]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], ebx
cmp byte [esi + 0x26], bl
je 0x1008d93
lea eax, [ebp - 0x7c]
push eax
push 0x1004dc4
call fcn.010055ca
test eax, eax
jl 0x1008d9b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004db0
push dword [ebp - 0x7c]
call edi
mov dword [ebp - 0x98], eax
cmp eax, ebx
je 0x1008da7
push 0x1004d94
push dword [ebp - 0x7c]
call edi
mov dword [ebp - 0x9c], eax
cmp eax, ebx
je 0x1008da7
push 0x1004d84
push dword [ebp - 0x7c]
call edi
mov dword [ebp - 0x90], eax
cmp eax, ebx
je 0x1008da7
cmp byte [esi + 0x27], bl
jne 0x1008db3
push 0x70
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.010055bf
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x94]
push 0x40
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x74], 0x70
mov dword [ebp - 0x70], 0xd
mov dword [ebp - 0x64], ebx
call fcn.010055bf
xor eax, eax
inc eax
add esp, 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp dword [esi + 0x28], eax
je 0x1004d60
mov dword [ebp - 8], 2
push 0x1004d74
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
call dword [ebp - 0x98]
test eax, eax
je 0x1008dff
push ebx
push 1
lea eax, [ebp - 0x80]
push eax
push ebx
push dword [ebp - 0x84]
call dword [ebp - 0x9c]
test eax, eax
je 0x1008e1b
cmp dword [ebp - 0x80], ebx
jne 0x1008e58
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x88], ebx
jne 0x1008e6b
pop edi
cmp dword [ebp - 0x80], ebx
jne 0x1008e7c
cmp dword [ebp - 0x84], ebx
je 0x1004d3f
cmp dword [ebp - 0x90], ebx
je 0x1004d3f
push dword [ebp - 0x84]
call dword [ebp - 0x90]
cmp dword [ebp - 0x7c], ebx
je 0x1004d4d
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001335
leave
ret 4
mov dword [ebp - 8], eax
cmp byte [esi + 0x20], bl
je 0x1004cc6
jmp 0x1004cbf
xor eax, eax
inc eax
jmp 0x1004d50
mov dword [ebp - 0x78], 1
jmp 0x1004d1a
mov dword [ebp - 0x78], 1
jmp 0x1004d19
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x78]
push 0x2e
push dword [esi + 0x238]
call fcn.01013edd
pop ecx
pop ecx
push eax
call fcn.01010e32
cmp eax, ebx
mov dword [ebp - 0x78], eax
jl 0x1004d0d
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
jmp 0x1004c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1008e13
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x78], eax
jmp 0x1004d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1008e2f
and eax, 0xffff
or eax, 0x80070000
push 0x1008e8c
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
call edi
cmp eax, ebx
je 0x1004d0d
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0x84]
call eax
jmp 0x1004d0d
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1004d0a
jmp 0x1008dff
push dword [ebp - 0x88]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1004d19
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004d23