Function at 0x10012720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 8], 0xcf5720e8
xor ebx, ebx
mov dword [ebp - 0x1c], 0x49480dd0
push 5
mov dword [ebp - 0x24], 0x2b461593
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], ebx
pop edi
jmp 0x10012755
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x30], edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x1001274b
lea eax, [ebp - 8]
push eax
push ebx
call fcn.10013464
pop ecx
pop ecx
push 1
pop esi
cmp dword [ebp - 8], ebx
jne 0x100127c8
mov eax, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, 0x8722
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
setne dl
imul ecx, edx
xor edx, edx
cmp ecx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
setle dl
add ecx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 8]
setge dl
sub edx, eax
jne 0x100127b2
mov eax, ebx
cmp dword [ebp - 8], ebx
je 0x100127b4
mov eax, esi
add eax, 0xfffffff6
mov ecx, ebx
sub eax, dword [ebp - 8]
neg eax
sbb eax, eax
inc eax
neg eax
cmp dword [ebp - 8], eax
jne 0x100127ca
mov ecx, esi
mov eax, dword [ebp - 8]
imul eax, ecx
cmp eax, 0x829cbc21
mov eax, dword [ebp - 8]
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
setg cl
xor eax, eax
cmp ecx, 0xfffd
setne al
cmp eax, dword [ebp - 8]
jle 0x1001291b
mov dword [ebp - 0x18], 0x8951fe51
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 8], ebx
jmp 0x1001290c
mov dword [ebp - 0xc], 0xfffffffb
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x18], ebx
je 0x1001284c
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10012834
push 0x1c5
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10012909
push ebx
call fcn.10017428
pop ecx
jmp 0x10012909
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x14], ebx
jne 0x100129e1
dec dword [ebp - 0xc]
je 0x100128fe
mov eax, dword [ebp - 0x30]
xor edx, edx
cmp eax, 0x7f72
mov eax, dword [ebp - 0x1c]
setle dl
xor ecx, ecx
cmp edx, eax
setl cl
imul ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp ecx, esi
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setle cl
xor edx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp eax, ecx
setne dl
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setle cl
cmp ecx, esi
sbb eax, eax
neg eax
cmp eax, 2
sbb eax, eax
inc eax
cmp eax, 0x37a762af
jge 0x100128da
mov eax, ebx
cmp dword [ebp - 0x18], ebx
je 0x100128dc
mov eax, esi
mov edx, dword [ebp - 0x30]
xor ecx, ecx
imul edx, eax
mov eax, dword [ebp - 0x24]
cmp eax, edx
setge cl
xor eax, eax
cmp ecx, 0x575e
mov ecx, esi
setle al
cmp eax, dword [ebp - 0xc]
je 0x10012900
mov ecx, ebx
mov eax, dword [ebp - 0x2c]
imul eax, ecx
mov dword [ebp - 0x1c], eax
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xfffffff3
jl 0x1001280d
jmp 0x100129e1
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], ebx
jmp 0x10012943
mov dword [ebp - 0x10], 0xef1792f5
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], ebx
jl 0x10012940
cmp dword [ebp - 0x30], ebx
jne 0x10012940
dec dword [ebp - 0x10]
jns 0x10012936
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jle 0x10012927
mov dword [ebp - 8], ebx
jmp 0x100129d8
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov eax, dword [ebp - 8]
cmp dword [ebp + eax*4 - 0x30], ebx
jne 0x1001299d
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov edx, dword [ebp + eax*4 - 0x30]
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov eax, dword [ebp - 0x2c]
setg cl
xor ebx, ebx
cmp edx, ecx
sete bl
xor ecx, ecx
cmp ebx, eax
mov eax, dword [ebp - 8]
setle cl
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp + eax*4 - 0x30]
add eax, ecx
cmp eax, dword [ebp - 0xc]
jl 0x1001299f
mov edx, esi
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 8]
sete cl
mov dword [ebp + eax*4 - 0x30], ecx
neg ecx
je 0x100129bb
mov ecx, esi
cmp dword [ebp - 8], ebx
jne 0x100129bd
mov ecx, ebx
mov eax, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
cmp eax, 0x77dc9657
setge cl
mov dword [ebp - 0x24], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jle 0x10012950
lea eax, [ebp - 0x40]
push eax
call fcn.100090f4
mov esi, eax
lea edi, [ebp - 0x34]
pop ecx
mov ecx, dword [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10012649
mov ecx, eax
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*8 + 4]
mov esp, ebp
pop ebp
ret