Function at 0x10011390
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086ce9
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x100bb758]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x384], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100609f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10011423
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x10011bf8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x370], edi
jmp 0x100114b8
push str.halowpCache
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x10011c02
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x10011485
movzx eax, ax
lea ecx, [ebp - 0x370]
push eax
call fcn.10009df0
jmp 0x100114b2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011490
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x370]
call fcn.10006650
mov edi, dword [ebp - 0x370]
push ecx
mov esi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x380], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.100060f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x378]
push eax
call fcn.10010b20
push 0x1008e8d8
lea eax, [ebp - 0x370]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x380]
push eax
call fcn.10009190
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.100090e0
add esp, 0x20
mov edx, dword [ebp - 0x380]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011540
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x36c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10011801
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x10011c0c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0x36c]
call fcn.10052ee0
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x10011669
push 0x20
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.1000afb0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10040970
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x260]
mov ebx, eax
call fcn.10005f50
test ebx, ebx
je 0x100116e0
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0xfde9
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x364]
push eax
call fcn.1000dfb0
push dword [eax]
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 0xb
call fcn.1000ef10
jmp 0x100116bd
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
push 0xfde9
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x364]
push eax
call fcn.1000dfb0
mov edx, dword [eax]
mov byte [ebp - 4], 0xc
test edx, edx
jne 0x1001169c
xor ecx, ecx
jmp 0x100116b0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100116a1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x368]
call fcn.10006650
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x100116da
push eax
call fcn.1006724e
add esp, 4
mov esi, dword [ebp - 0x368]
cmp dword [esi - 0xc], 0
je 0x100117c1
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x374], eax
call fcn.100060f0
mov esi, dword [ebp - 0x37c]
lea ecx, [ebp - 0x230]
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.10005f50
lea ecx, [ebp - 0x248]
call fcn.10005f50
mov edx, dword [ebp - 0x374]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001173e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x36c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001175f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x378]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011780
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001179b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100117ba
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x10011bdc
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x230]
call fcn.10005f50
lea ecx, [ebp - 0x248]
call fcn.10005f50
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10011801
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x10011c16
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x368], eax
push 0
push 0x2710
lea eax, [ebp - 0x368]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10019360
add esp, 0x10
test eax, eax
jne 0x10011934
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x10011c20
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp - 0x37c]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x1008e5a8
mov byte [ebp - 4], 0xe
mov ecx, esi
test eax, 0xffff0000
jne 0x10011880
movzx eax, ax
push eax
call fcn.10009df0
jmp 0x1001188c
push 0
push 0x1008e5a8
call fcn.10006650
mov edx, dword [ebp - 0x368]
mov eax, ebx
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100118ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x36c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100118ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x378]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100118ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001190a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100117ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x10011bdc
mov esi, dword [ebp - 0x368]
push dword [esi - 0xc]
push esi
push dword [ebp - 0x36c]
call fcn.100530c0
add esp, 0xc
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x10011c2a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x374], eax
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 0xf
jne 0x10011a9e
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
push 0x20
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000afb0
mov ecx, esi
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100119e7
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.1000afb0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.10040970
add esp, 0xc
lea ecx, [ebp - 0x260]
mov ebx, eax
call fcn.10005f50
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x10
call fcn.10005f50
test ebx, ebx
je 0x10011a8d
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0xfde9
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x364]
push eax
call fcn.1000dfb0
push dword [eax]
lea ecx, [ebp - 0x374]
mov byte [ebp - 4], 0x13
call fcn.1000ef10
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
cmp eax, ecx
je 0x10011a8d
push eax
call fcn.1006724e
add esp, 4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xf
call fcn.10005f50
jmp 0x10011afb
push 0xfde9
push esi
lea ecx, [ebp - 0x364]
call fcn.1000dfb0
mov edx, dword [eax]
mov byte [ebp - 4], 0x14
test edx, edx
jne 0x10011abd
xor ecx, ecx
jmp 0x10011ad1
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011ac2
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x374]
call fcn.10006650
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0xf
cmp eax, ecx
je 0x10011afb
push eax
call fcn.1006724e
add esp, 4
mov eax, dword [ebp - 0x374]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x384], eax
call fcn.100060f0
mov ecx, dword [ebp - 0x37c]
add eax, 0x10
mov edx, dword [ebp - 0x384]
or ebx, 0xffffffff
add esp, 4
mov byte [ebp - 4], 0xd
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011b3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10011b5a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x36c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011b7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x378]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011b9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10011bb7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10011bd6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x37c]
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.100561dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100060c0
push 0x80004005
call fcn.100060c0
push 0x80004005
call fcn.100060c0
push 0x80004005
call fcn.100060c0
push 0x80004005
call fcn.100060c0
push 0x80004005
call fcn.100060c0
int3