Function at 0x1002210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x10], 0x40
mov dword [ebp - 0x14], 0x319f
mov eax, 1
imul ecx, eax, 0x14
mov dl, byte [ecx + 0x11519a0]
mov byte [ebp - 0xc], dl
cmp byte [ebp - 0xc], 7
je 0x1002245
jmp 0x1002263
mov eax, dword [0x11519f8]
mov ecx, dword [0x11519b0]
lea edx, [ecx + eax - 0x2b]
xor eax, eax
mov dword [0x1151998], edx
mov dword [0x115199c], eax
jmp 0x100227e
imul ecx, dword [0x11519b0], 0x21
mov edx, dword [0x1151998]
sub edx, ecx
mov eax, dword [0x11519f8]
sub eax, edx
mov dword [0x11519f8], eax
mov ecx, 1
shl ecx, 2
movzx edx, byte [ecx + 0x11519a0]
movzx eax, byte [0x11519b4]
cmp edx, eax
jg 0x1002300
mov ecx, 1
imul edx, ecx, 5
mov al, byte [0x1151994]
mov byte [edx + 0x11519a0], al
movzx ecx, byte [0x11519b4]
mov edx, dword [0x1151994]
lea eax, [ecx + edx - 0x2371]
mov dword [0x11519b0], eax
mov ecx, dword [0x1151994]
sub ecx, 0x27
movzx edx, byte [0x11519b4]
sub ecx, edx
add ecx, dword [0x11519b0]
mov dword [0x11519b0], ecx
movzx eax, byte [0x11519b4]
imul ecx, dword [0x1151994], 0x21
sub eax, ecx
mov edx, dword [0x11519b0]
sub edx, eax
mov dword [0x11519b0], edx
mov eax, dword [0x1151994]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax - 0x15966]
mov dword [0x1151994], edx
mov eax, dword [ebp + 0xc]
mov dword [0x11534c4], eax
mov ecx, dword [0x1151994]
xor edx, edx
add ecx, dword [0x1151998]
adc edx, dword [0x115199c]
xor eax, eax
sub ecx, dword [ebp + 8]
sbb edx, eax
mov dword [0x1151998], ecx
mov dword [0x115199c], edx
mov ecx, dword [0x11519b0]
cmp ecx, dword [0x1151994]
jb 0x10023a9
movzx edx, byte [0x11519b4]
mov eax, dword [0x1151994]
lea ecx, [edx + eax - 0x2371]
mov dword [0x11519b0], ecx
mov edx, 1
shl edx, 2
movzx eax, byte [0x11519b4]
movzx ecx, byte [edx + 0x11519a0]
imul ecx, eax
mov edx, 1
shl edx, 2
mov byte [edx + 0x11519a0], cl
movzx eax, byte [0x11519b4]
mov ecx, dword [0x11519b0]
lea edx, [ecx + eax - 0x2b]
mov dword [0x1151994], edx
push 0x7a8
push 0x1152ce8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x1151994], eax
mov eax, dword [ebp - 4]
add eax, 3
sub eax, dword [ebp - 4]
mov byte [0x11519b4], al
mov ecx, dword [0x1151998]
add ecx, 3
sub ecx, dword [ebp - 4]
mov byte [0x11519b4], cl
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [0x11534c4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x11519b0]
cmp eax, dword [0x11519f8]
jb 0x100244c
mov ecx, dword [0x11519f8]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx - 0x2371]
mov dword [0x11519b0], eax
mov ecx, 1
shl ecx, 2
movzx edx, byte [ecx + 0x11519a0]
imul edx, dword [ebp - 4]
mov eax, 1
shl eax, 2
mov byte [eax + 0x11519a0], dl
mov ecx, dword [ebp - 4]
mov edx, dword [0x11519b0]
lea eax, [edx + ecx - 0x2b]
mov dword [0x11519f8], eax
mov ecx, 1
imul edx, ecx, 9
movzx eax, byte [edx + 0x11519a0]
cmp eax, 0x1fb6
jne 0x1002497
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [edx + 0x11519a0]
mov ecx, dword [0x1151994]
sub ecx, eax
mov dword [0x1151994], ecx
mov edx, dword [0x1151994]
mov eax, dword [0x1151994]
lea ecx, [eax + edx - 0x15966]
mov dword [0x1151994], ecx
mov edx, dword [0x1151994]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx - 0x2371]
xor edx, edx
sub ecx, dword [0x1151998]
sbb edx, dword [0x115199c]
add ecx, dword [0x1151998]
adc edx, dword [0x115199c]
mov dword [0x1151998], ecx
mov dword [0x115199c], edx
mov eax, dword [0x1151994]
add eax, 3
sub eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1151998], eax
mov dword [0x115199c], ecx
movzx edx, byte [0x11519b4]
sub edx, 0x27
mov dword [ebp - 4], edx
mov eax, dword [0x1151998]
add eax, 3
sub eax, dword [ebp - 4]
mov byte [0x11519b4], al
mov ecx, 1
shl ecx, 2
movzx edx, byte [ecx + 0x11519a0]
cmp edx, dword [ebp + 8]
ja 0x100258b
mov al, byte [0x1151998]
mov ecx, 1
imul edx, ecx, 5
mov byte [edx + 0x11519a0], al
mov eax, dword [ebp + 8]
sub eax, 0x2371
add eax, dword [0x1151998]
sub eax, dword [0x1151994]
mov ecx, dword [0x1151994]
add ecx, eax
mov dword [0x1151994], ecx
mov edx, dword [0x1151998]
sub edx, 0x27
sub edx, dword [ebp + 8]
mov eax, dword [0x1151994]
add eax, edx
mov dword [0x1151994], eax
mov esi, dword [ebp + 8]
push 0
push 0x21
mov ecx, dword [0x115199c]
push ecx
mov edx, dword [0x1151998]
push edx
call fcn.01108240
sub esi, eax
mov eax, dword [0x1151994]
sub eax, esi
mov dword [0x1151994], eax
push 0x7a8
push 0x1152ce8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [0x1151994], eax
mov ecx, 1
imul edx, ecx, 0x14
mov al, byte [edx + 0x11519a0]
mov byte [ebp - 0x18], al
cmp byte [ebp - 0x18], 7
je 0x10025b9
jmp 0x10025cd
mov ecx, dword [0x1151994]
sub ecx, 0x2b
add ecx, dword [0x1151998]
mov dword [ebp + 8], ecx
jmp 0x10025f5
imul edx, dword [0x1151994], 0x21
mov eax, dword [ebp + 8]
sub eax, edx
xor ecx, ecx
mov edx, dword [0x1151998]
sub edx, eax
mov eax, dword [0x115199c]
sbb eax, ecx
mov dword [0x1151998], edx
mov dword [0x115199c], eax
push dword [0x11534c4]
movzx ecx, byte [0x11519b4]
sub ecx, 6
sub ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
push 0
push 7
mov edx, dword [0x115199c]
push edx
mov eax, dword [0x1151998]
push eax
call fcn.01108240
add esi, eax
mov dword [0x1151994], esi
pop esi
call esi
movzx ecx, byte [0x11519b4]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx - 0x2371]
mov dword [ebp - 4], eax
mov ecx, dword [0x1151998]
sub ecx, 6
sub ecx, dword [ebp + 8]
mov dword [0x1151994], ecx
mov dword [ebp - 8], 0x22
jmp 0x1002667
mov edx, dword [ebp - 8]
sub edx, 2
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 3
jle 0x10026ec
mov eax, 1
shl eax, 1
movzx ecx, byte [eax + 0x11519a0]
cmp dword [ebp + 8], ecx
jne 0x1002682
jmp 0x100265e
mov edx, dword [0x1151994]
xor eax, eax
add edx, dword [0x1151998]
adc eax, dword [0x115199c]
xor ecx, ecx
sub edx, dword [ebp + 8]
sbb eax, ecx
mov dword [0x1151998], edx
mov dword [0x115199c], eax
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x11519a0]
sub eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x11519a0], al
mov esi, dword [ebp + 8]
push 0
push 0x21
mov edx, dword [0x115199c]
push edx
mov eax, dword [0x1151998]
push eax
call fcn.01108240
sub esi, eax
mov ecx, dword [0x1151994]
sub ecx, esi
mov dword [0x1151994], ecx
jmp 0x100265e
mov edx, dword [ebp + 8]
sub edx, 0x2371
add edx, dword [0x1151998]
sub edx, dword [0x1151994]
mov eax, dword [0x1151994]
add eax, edx
mov dword [0x1151994], eax
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret