Function at 0x4c1184
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4c118d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.00404c98
xor eax, eax
push ebp
push 0x4c1575
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.004027c4
mov dword [ebp - 0x20], eax
push 0xff
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [ebp + 8]
call fcn.0041b5b4
mov dl, 1
mov eax, dword [0x4181d0]
call fcn.00403984
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x43c6f8]
call fcn.0043c7f8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4c1536
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0043c898
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0043c900
test al, al
je 0x4c1518
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0043ccec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 4]
call fcn.0044fcc8
mov eax, dword [eax + 8]
mov ecx, 0x4c1590
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 4]
call fcn.0044fcc8
mov eax, dword [eax + 8]
mov ecx, 0x4c159c
mov edx, 1
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4c14c6
inc esi
xor ebx, ebx
mov eax, dword [0x4fc898]
cmp byte [eax], 1
je 0x4c14c6
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x24]
call fcn.00404af4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.00469d04
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0043ce2c
dec eax
sub al, 2
jae 0x4c14b2
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
call fcn.004049e0
push dword [ebp - 0x2c]
push 0x4c15b0
lea ecx, [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0043ce7c
push dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404b68
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.00408d68
mov edx, dword [ebp - 0x38]
mov eax, 0x4c15c0
call fcn.00404dec
cmp eax, 2
jne 0x4c14b2
mov edx, dword [ebp - 0x1c]
mov eax, 0x4c15cc
call fcn.00404dec
test eax, eax
jne 0x4c14b2
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.00408c58
mov edx, dword [ebp - 0x3c]
mov eax, 0x4c15d8
call fcn.00404dec
test eax, eax
jne 0x4c14b2
mov eax, dword [0x4fc61c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
call fcn.004beef8
test al, al
je 0x4c14b2
mov eax, dword [ebp - 0x1c]
call fcn.00409640
test al, al
jne 0x4c14b2
mov eax, dword [ebp + 8]
call fcn.0048b4ec
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.0048b500
mov edx, dword [0x4fc788]
mov dl, byte [edx + 0xe]
mov byte [eax + 0xc], dl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0xd
push eax
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp + 0x10]
call fcn.004be180
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea edx, [ebp - 0x50]
mov ecx, 1
mov eax, 0x4c15e4
call fcn.0040a1dc
mov edx, dword [ebp - 0x40]
pop eax
call fcn.0040483c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x11
mov edx, 0x4c15f4
call fcn.0040483c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x15
push eax
lea ecx, [ebp - 0x58]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x58]
pop eax
call fcn.0040483c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x19
push eax
lea ecx, [ebp - 0x60]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
call fcn.0043ce7c
mov edx, dword [ebp - 0x5c]
pop eax
call fcn.0040483c
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp + 8]
call fcn.0041b658
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x4c1604
call fcn.0040a1dc
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 4]
call fcn.0044fcc8
mov eax, dword [eax + 8]
xor edx, edx
pop ecx
mov edi, dword [eax]
call dword [edi + 0x20]
mov eax, dword [0x4fcbc4]
mov eax, dword [eax]
call fcn.00489ae4
inc ebx
dec esi
jne 0x4c128c
mov eax, dword [0x4fc898]
cmp byte [eax], 1
jne 0x4c14f5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 4]
call fcn.0044fcc8
mov eax, dword [eax + 8]
mov ecx, 0x4c1610
mov edx, 1
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x4c1518
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 4]
call fcn.0044fcc8
mov eax, dword [eax + 8]
mov ecx, 0x4c1624
mov edx, 1
mov ebx, dword [eax]
call dword [ebx + 0x20]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c153d
mov eax, dword [ebp - 0x14]
call fcn.004039b4
mov eax, dword [ebp - 0x18]
call fcn.004039b4
ret