Function at 0x100f9140
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136d42
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10167b84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x22c], edi
call fcn.10016e80
mov ecx, eax
test ecx, ecx
je 0x100f9719
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x10139f4c
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.100169f0
test al, al
jne 0x100f91c1
push 0
push 0x10139f4c
lea ecx, [ebp - 0x224]
call fcn.10017a00
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.100fa7e0
mov edx, dword [0x101759f8]
add esp, 4
mov esi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x100f9203
cmp dword [ecx + 0x10], esi
jge 0x100f91f0
mov ecx, dword [ecx + 8]
jmp 0x100f91f4
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x100f91e6
cmp eax, edx
je 0x100f9203
cmp esi, dword [eax + 0x10]
jge 0x100f9205
mov eax, edx
cmp edx, eax
je 0x100f9218
add eax, 0x14
lea ecx, [ebp - 0x224]
push eax
call fcn.10018670
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jne 0x100f928d
call fcn.10016e80
mov ecx, eax
test ecx, ecx
je 0x100f9723
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10139f4c
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.100169f0
test al, al
jne 0x100f925f
push 0
push 0x10139f4c
mov ecx, edi
call fcn.10017a00
mov esi, dword [ebp - 0x224]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100f96fb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x100f96fb
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x219]
call fcn.100eecf0
add esi, 0xfffffffd
mov byte [ebp - 4], 3
cmp esi, 0x45
ja case.0x100f92b6.4
movzx eax, byte [esi + 0x100f975c]
jmp dword [eax*4 + 0x100f9738]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ed730
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.10018670
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100159b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100f5640
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.10018670
lea ecx, [ebp - 0x220]
jmp 0x100f95a5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100eb210
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.10018670
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100159b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ec2b0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.10018670
lea ecx, [ebp - 0x220]
jmp 0x100f95a5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100eb2d0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.10018670
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100159b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100efaf0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.10018670
lea ecx, [ebp - 0x220]
jmp 0x100f95a5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100eb210
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.10018670
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100159b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ec2b0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
call fcn.10018670
lea ecx, [ebp - 0x220]
jmp 0x100f95a5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100eb210
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xc
call fcn.10018670
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100159b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ec2b0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xd
call fcn.10018670
lea ecx, [ebp - 0x220]
jmp 0x100f95a5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100eb210
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xe
call fcn.10018670
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100159b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ec2b0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xf
call fcn.10018670
lea ecx, [ebp - 0x220]
jmp 0x100f95a5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100eb2d0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x10
call fcn.10018670
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100159b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100efaf0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x11
call fcn.10018670
lea ecx, [ebp - 0x220]
jmp 0x100f95a5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100ee260
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x12
call fcn.10018670
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100159b0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x219]
call fcn.100eecf0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x13
call fcn.10018670
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.100159b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1010db20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x224]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100f960c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.10016e80
mov ecx, eax
test ecx, ecx
je 0x100f972d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x220]
call fcn.100169f0
test al, al
jne 0x100f9682
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f9660
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.10017a00
mov ebx, dword [ebp - 0x220]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0x15
push ebx
call fcn.10016a40
add eax, 0x10
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x100f96b8
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100f96d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100f96fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100faee9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10016670
push 0x80004005
call fcn.10016670
push 0x80004005
call fcn.10016670
nop
mov ebp, 0x1b100f92
xchg ebx, eax
movups xmm7, xmmword [ecx - 0x6d]
movups xmm2, xmmword [ebx - 0x28eff06c]
xchg ebx, eax
movups xmm6, xmmword [0x4c100f94]
xchg ebp, eax
movups xmm6, xmm1
xchg esp, eax
movups xmm5, xmmword [esi + 0x100f95]
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
add byte [ecx], al
add al, byte [ebx]
add al, 5
push es
pop es
push es
push es
pop es
pop es
pop es
int3