Function at 0x1004c67f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push esi
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1004c6a8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
push 0
call fcn.1004fe48
pop ecx
pop ecx
jmp 0x1004ca7b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x98], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1004c70f
push 0x264e
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1004ca7b
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10024b73
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x1004c7d0
mov dword [ebp - 0x24], 1
jmp 0x1004c7d4
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jle 0x1004c7f3
mov dword [ebp - 0xa4], 1
jmp 0x1004c7fa
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], 5
or eax, 0xffffffff
add eax, 5
mov ecx, dword [ebp - 0xac]
cmp eax, dword [ecx]
jl 0x1004c827
mov dword [ebp - 0x64], 1
jmp 0x1004c82b
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
sub eax, 0x19c36c1d
jne 0x1004c843
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x1004c843
and dword [ebp - 0x48], 0
jmp 0x1004c84a
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jge 0x1004c85d
mov dword [ebp - 0x28], 1
jmp 0x1004c861
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
je 0x1004c870
mov dword [ebp - 0x68], 1
jmp 0x1004c874
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x68], eax
jl 0x1004c88f
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1004c88f
mov dword [ebp - 0x10], 1
jmp 0x1004c893
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp - 0x10]
add esi, 0x686b6fd8
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10024b73
cmp esi, dword [eax]
jle 0x1004c8c1
mov dword [ebp - 0x30], 1
jmp 0x1004c8c5
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0x43993911
jg 0x1004c8d7
mov dword [ebp - 0x50], 1
jmp 0x1004c8db
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0x45c5
jne 0x1004c8ed
mov dword [ebp - 0x38], 1
jmp 0x1004c8f1
and dword [ebp - 0x38], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.10024b73
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax]
jge 0x1004c90b
mov dword [ebp - 0x60], 1
jmp 0x1004c90f
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x60], eax
jne 0x1004c928
mov eax, 0x6892
test eax, eax
jne 0x1004c928
and dword [ebp - 0x40], 0
jmp 0x1004c92f
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
imul eax, dword [ebp - 0x40]
push 5
pop ecx
sub ecx, eax
cmp ecx, 0xfff9
jae 0x1004c94e
mov dword [ebp - 0x58], 1
jmp 0x1004c952
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10024b73
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax]
jl 0x1004c96f
mov dword [ebp - 0x1c], 1
jmp 0x1004c973
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jl 0x1004c98f
mov dword [ebp - 0x2c], 1
jmp 0x1004c993
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10024b73
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax]
jl 0x1004c9b0
mov dword [ebp - 0x34], 1
jmp 0x1004c9b4
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10024b73
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
jge 0x1004c9d1
mov dword [ebp - 0x3c], 1
jmp 0x1004c9d5
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jg 0x1004c9ee
mov dword [ebp - 0x14], 1
jmp 0x1004c9f2
and dword [ebp - 0x14], 0
push 1
mov ecx, dword [ebp - 8]
call fcn.10024b73
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jne 0x1004ca14
mov dword [ebp - 0x44], 1
jmp 0x1004ca18
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 2
jbe 0x1004ca27
mov dword [ebp - 0x4c], 1
jmp 0x1004ca2b
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jl 0x1004ca3e
mov dword [ebp - 0x54], 1
jmp 0x1004ca42
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x54], eax
jle 0x1004ca55
mov dword [ebp - 0x18], 1
jmp 0x1004ca59
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jl 0x1004ca6c
mov dword [ebp - 0x6c], 1
jmp 0x1004ca70
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret