Function at 0x101be660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x128], esi
push eax
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x11224e94
lea eax, [ebp - 0x110]
mov dword [ebx], 0
push eax
push 0x1046bfe0
push 0xffffffffffffffff
push 0x104
push eax
mov dword [esi], 0
call fcn.101beef0
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov dword [0x11d23ba4], edi
test edi, edi
jne 0x101be7ea
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101be6f0
sub ecx, edx
lea eax, [ecx*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x101be7d5
lea ecx, [ebp - 0x110]
xor edx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101be720
sub ecx, edi
je 0x101be754
nop dword [eax + eax]
movsx ax, byte [ebp + edx - 0x110]
lea ecx, [ebp - 0x110]
lea edi, [ecx + 1]
mov word [esi + edx*2], ax
inc edx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101be747
sub ecx, edi
cmp edx, ecx
jb 0x101be730
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call edi
movzx eax, word [esi]
cmp eax, 0x5c
je 0x101be7b6
cmp eax, 0x2f
je 0x101be7b6
push eax
call fcn.1043a2f0
add esp, 4
test eax, eax
je 0x101be78d
cmp word [esi + 2], 0x3a
jne 0x101be78d
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x101be7b6
cmp eax, 0x2f
je 0x101be7b6
push 0xa0
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x11d23ba4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.1003fff0
test eax, eax
jne 0x101be7c8
push 0xa1
jmp 0x101be792
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x11d23ba4], edi
test edi, edi
je 0x101be8e3
push 0x1046cbf0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x101be8e3
mov dword [ebp - 0x124], 0x40050
xor esi, esi
mov dword [ebp - 0x120], 0x30048
mov dword [ebp - 0x11c], 0x20048
mov dword [ebp - 0x118], 0x10048
mov dword [ebp - 0x114], 0x10044
nop dword [eax]
nop dword [eax + eax]
mov edi, dword [ebp + esi*4 - 0x124]
push 0x11d23cbc
push edi
call ebx
test eax, eax
jne 0x101be861
mov eax, dword [0x11d23cbc]
test eax, eax
je 0x101be861
cmp dword [eax], 0
jne 0x101be878
inc esi
cmp esi, 5
jb 0x101be840
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x101be8cc
cmp dword [eax + 8], 0
je 0x101be8cc
cmp dword [eax + 0xc], 0
je 0x101be8cc
cmp dword [eax + 0x10], 0
je 0x101be8cc
cmp dword [eax + 0x14], 0
je 0x101be8cc
cmp dword [eax + 0x18], 0
je 0x101be8cc
cmp dword [eax + 0x1c], 0
je 0x101be8cc
cmp dword [eax + 0x20], 0
je 0x101be8cc
cmp dword [eax + 0x24], 0
je 0x101be8cc
cmp dword [eax + 0x28], 0
je 0x101be8cc
cmp dword [eax + 0x2c], 0
je 0x101be8cc
cmp dword [eax + 0x30], 0
je 0x101be8cc
cmp dword [eax + 0x34], 0
je 0x101be8cc
cmp dword [eax + 0x38], 0
jne 0x101be8d3
xor eax, eax
mov dword [0x11d23cbc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ecx], eax
mov eax, dword [ebp - 0x12c]
mov dword [eax], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret