Function at 0x1001d8af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064d5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push esi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1001d97e
lea eax, [ebp + 0xc]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xe4]
movzx eax, byte [eax]
test eax, eax
je 0x1001d911
push 0x14a0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001d979
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x30]
mov dword [eax], 0
jmp 0x1001d954
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x1c
je 0x1001d979
mov dword [ebp - 0x68], 0xfffa
mov eax, dword [ebp - 0xc4]
cmp dword [eax], 0
je 0x1001d970
jmp 0x1001d979
mov eax, dword [ebp - 0x68]
dec eax
mov dword [ebp - 0x68], eax
jmp 0x1001d949
jmp 0x1001dfe3
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x10], 0xffffffff
push 1
lea ecx, [ebp - 0xf0]
call fcn.100248e9
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x38], 0
jmp 0x1001d9b6
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jge 0x1001d9d2
push dword [ebp - 0x38]
lea ecx, [ebp - 0xf0]
call fcn.10024a46
mov dword [eax], 0xfffffffd
jmp 0x1001d9af
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x1001d9eb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], 0x71c7bf0b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x10], 0
jne 0x1001da3b
cmp dword [ebp - 0x10], 0
je 0x1001da1a
push 0xfffffffffffffffe
pop eax
test eax, eax
je 0x1001da1a
mov dword [ebp - 0xb0], 1
jmp 0x1001da21
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
sub eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
jg 0x1001da3b
cmp dword [ebp - 0x10], 0
jne 0x1001da3b
and dword [ebp - 0x40], 0
jmp 0x1001da42
mov dword [ebp - 0x40], 1
push 0
lea ecx, [ebp - 0xf0]
call fcn.10024a46
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x40], eax
jl 0x1001da65
mov dword [ebp - 0x6c], 1
jmp 0x1001da69
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx + 0x3b288586]
cmp eax, 2
jle 0x1001da8a
mov dword [ebp - 0xa8], 1
jmp 0x1001da91
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x18]
je 0x1001dc57
push 2
lea ecx, [ebp - 0x50]
call fcn.100248e9
mov byte [ebp - 4], 1
mov dword [ebp - 0x84], 0xb1aa435c
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x34], 0
jmp 0x1001dad5
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jge 0x1001daee
push dword [ebp - 0x34]
lea ecx, [ebp - 0x50]
call fcn.10024a46
mov dword [eax], 0x1dbdae4
jmp 0x1001dace
mov dword [ebp - 0x18], 5
jmp 0x1001dafe
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffffb
jne 0x1001db29
mov byte [ebp - 0x25], 0
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x1001db16
call dword [sym.imp.USER32.dll_WaitMessage]
push 0
lea ecx, [ebp - 0x50]
call fcn.10024a46
cmp dword [eax], 0
je 0x1001db27
jmp 0x1001daf7
jmp 0x1001daf7
push 1
lea ecx, [ebp - 0x50]
call fcn.10024a46
push 1
lea ecx, [ebp - 0x50]
call fcn.10024a46
cmp dword [eax], 0xef34ea88
jbe 0x1001db51
mov dword [ebp - 0xac], 1
jmp 0x1001db58
and dword [ebp - 0xac], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10024a46
mov eax, dword [eax]
cmp eax, dword [ebp - 0xac]
jle 0x1001db78
mov dword [ebp - 0xe0], 1
jmp 0x1001db7f
and dword [ebp - 0xe0], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10024a46
mov esi, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0xf0]
call fcn.10024a46
sub esi, dword [eax]
cmp esi, 0x9c3f9080
ja 0x1001dbac
mov dword [ebp - 0x74], 1
jmp 0x1001dbb0
and dword [ebp - 0x74], 0
push 1
lea ecx, [ebp - 0x50]
call fcn.10024a46
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [eax]
jle 0x1001dbcd
mov dword [ebp - 0x94], 1
jmp 0x1001dbd4
and dword [ebp - 0x94], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10024a46
mov eax, dword [eax]
cmp eax, dword [ebp - 0x94]
jg 0x1001dbf1
mov dword [ebp - 0x7c], 1
jmp 0x1001dbf5
and dword [ebp - 0x7c], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10024a46
mov esi, eax
push 0
lea ecx, [ebp - 0x50]
call fcn.10024a46
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax]
imul ecx, dword [esi]
cmp ecx, 0x9cbadbef
jbe 0x1001dc27
mov dword [ebp - 0xa4], 1
jmp 0x1001dc2e
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.100249c2
jmp 0x1001dfc5
mov dword [ebp - 0x88], 0xca12535b
mov dword [ebp - 0x70], 0xfffffffa
mov dword [ebp - 0xf8], 0x153c
cmp dword [ebp - 0xf8], 0xa94
jge 0x1001dea7
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x10008144
call fcn.1004cd7b
add esp, 0xc
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x60]
call fcn.100248dc
mov byte [ebp - 4], 2
and dword [ebp - 0x54], 0
jmp 0x1001dcb7
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0xd4]
jge 0x1001dd6b
lea eax, [ebp - 0xd8]
push eax
push 0x100080b8
call fcn.1004cd7b
pop ecx
pop ecx
cmp dword [ebp - 0xd8], 1
jne 0x1001dd10
lea eax, [ebp - 0xb8]
push eax
push 0x100080bc
call fcn.1004cd7b
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xb8]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
jmp 0x1001dd66
lea ecx, [ebp - 0x60]
call fcn.10024a3d
test eax, eax
je 0x1001dd42
lea ecx, [ebp - 0x60]
call fcn.10024a55
mov ecx, dword [ebp - 0x24]
and ecx, 0x80000001
jns 0x1001dd34
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp dword [eax], ecx
jne 0x1001dd42
lea ecx, [ebp - 0x60]
call fcn.10024b19
jmp 0x1001dd66
mov eax, dword [ebp - 0x24]
and eax, 0x80000001
jns 0x1001dd51
dec eax
or eax, 0xfffffffe
inc eax
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x60]
call fcn.10024ac6
jmp 0x1001dcb0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x104]
call fcn.100248e9
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.10024a3d
test eax, eax
jne 0x1001ddb9
and dword [ebp - 0x2c], 0
jmp 0x1001dd96
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
jge 0x1001ddb4
mov esi, dword [ebp - 0x2c]
inc esi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x104]
call fcn.10024a46
mov dword [eax], esi
jmp 0x1001dd8f
jmp 0x1001de43
and dword [ebp - 0x1c], 0
jmp 0x1001ddc6
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jge 0x1001de43
push 0
lea ecx, [ebp - 0x60]
call fcn.10024a46
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
and ecx, 0x80000001
jns 0x1001ddea
dec ecx
or ecx, 0xfffffffe
inc ecx
test ecx, ecx
jne 0x1001de12
mov esi, dword [ebp - 0x1c]
inc esi
lea ecx, [ebp - 0x60]
call fcn.10024a3d
add eax, dword [ebp - 0x1c]
xor edx, edx
div dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x104]
call fcn.10024a46
mov dword [eax], esi
jmp 0x1001de3e
mov esi, dword [ebp - 0x1c]
inc esi
lea ecx, [ebp - 0x60]
call fcn.10024a3d
xor edx, edx
div dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
sub eax, edx
add eax, dword [ebp - 0x14]
xor edx, edx
div dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x104]
call fcn.10024a46
mov dword [eax], esi
jmp 0x1001ddbf
and dword [ebp - 0x3c], 0
jmp 0x1001de50
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x14]
jge 0x1001de81
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x104]
call fcn.10024a46
push dword [eax]
push 0x10008174
call fcn.1004d1c8
pop ecx
pop ecx
jmp 0x1001de49
push 0x10008025
call fcn.1004d431
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x104]
call fcn.10024a9b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10024a9b
mov dword [ebp - 0xc8], 0x9cad
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x88]
add eax, 0x3dc28bf3
cmp eax, dword [ebp - 0x18]
jl 0x1001ded4
mov dword [ebp - 0x9c], 1
jmp 0x1001dedb
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0xc8]
cmp dword [ebp - 0x9c], eax
jg 0x1001def5
mov dword [ebp - 0x8c], 1
jmp 0x1001defc
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x1001df15
xor eax, eax
jne 0x1001df15
and dword [ebp - 0x64], 0
jmp 0x1001df1c
mov dword [ebp - 0x64], 1
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x64], eax
jle 0x1001df2d
mov dword [ebp - 0x78], 1
jmp 0x1001df31
and dword [ebp - 0x78], 0
mov dword [ebp - 0x70], 0x64c7272f
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x78]
jge 0x1001df49
mov dword [ebp - 0x80], 1
jmp 0x1001df4d
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
add eax, 0x954a
cmp eax, 5
jge 0x1001df66
mov dword [ebp - 0x98], 1
jmp 0x1001df6d
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
push 0
lea ecx, [ebp - 0xf0]
call fcn.10024a46
mov ecx, dword [ebp - 0x90]
mov dword [eax], ecx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x98]
jne 0x1001dfa8
mov dword [ebp - 0xa0], 1
jmp 0x1001dfaf
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0x1a7d
jl 0x1001dfbf
cmp dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.100249c2
push 1
push dword [ebp - 0xd0]
call fcn.10009ea7
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret