Function at 0x1084f51
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x1275fbf
call fcn.01160458
sub esp, 0x28c
mov eax, dword [0x12cf8c8]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], ecx
je 0x1084fdc
mov byte [eax], bl
xor eax, eax
mov al, byte [ebp + 0x18]
push ebx
mov ecx, esi
and eax, 0xffffff01
push eax
push 1
call fcn.010832a6
cmp eax, ebx
jl 0x108564f
lea eax, [ebp - 0x240]
lea ecx, [esi + 0xc]
push eax
mov dword [ebp - 0x240], ebx
call fcn.0117ec3d
cmp eax, ebx
jl 0x108564f
cmp dword [ebp - 0x240], ebx
jne 0x1084fe6
mov eax, 0x80004003
jmp 0x108564f
push esi
lea ecx, [ebp - 0x25c]
call fcn.0116b173
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x25c]
call fcn.0116ae63
cmp eax, ebx
jl 0x108563c
push edi
lea ecx, [esi + 0x5c]
call fcn.01045196
test byte [ebp + 0x18], 2
je 0x108531f
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x238], ebx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x238]
push eax
mov ecx, 0x12d2398
call fcn.0107dbed
mov edi, eax
cmp edi, ebx
jge 0x1085092
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x1085064
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x1085078
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x108508b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, edi
jmp 0x108563e
mov eax, dword [ebp - 0x238]
cmp eax, ebx
jne 0x10850e1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x10850b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x10850c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x10850d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004003
jmp 0x108563e
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
push eax
call dword [ecx + 0x58]
mov edi, eax
cmp edi, ebx
jl 0x1085050
cmp dword [ebp - 0x22c], ebx
je 0x108509c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x1085114
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x22c]
call fcn.0104589c
mov edi, eax
cmp edi, ebx
jl 0x1085064
cmp dword [ebp - 0x21c], ebx
je 0x10850b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x1085150
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x100355c
lea ecx, [ebp - 0x220]
call fcn.01046065
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push eax
call dword [ecx + 0x138]
mov edi, eax
cmp edi, ebx
jl 0x10852da
lea ecx, [ebp - 0x220]
call fcn.01045236
mov edi, eax
cmp edi, ebx
jl 0x10852da
mov eax, dword [ebp - 0x220]
cmp dword [eax - 8], ebx
jne 0x10851f8
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jne 0x10851e6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.01045295
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x10851dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004005
jmp 0x108563e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.01045196
lea ecx, [ebp - 0x220]
call fcn.010833d1
mov edi, eax
cmp edi, ebx
jl 0x10852da
mov dword [ebp - 0x234], ebx
lea ecx, [ebp - 0x228]
call fcn.01045169
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x220]
push 0x104
lea ecx, [ebp - 0x228]
call fcn.0103297b
push eax
push ebx
push 0x10094fc
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
cmp edi, ebx
jl 0x10852cb
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
call fcn.010329e8
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x108528b
lea ecx, [ebp - 0x228]
call fcn.01045236
mov edi, eax
cmp edi, ebx
jl 0x10852cb
push ebx
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10852b2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x228]
call fcn.01045295
inc dword [ebp - 0x234]
cmp dword [ebp - 0x234], 0x186a0
jl 0x1085213
jmp 0x10852fd
mov ecx, dword [ebp - 0x240]
push 1
push dword [ebp - 0x228]
call fcn.0117ca01
mov edi, eax
cmp edi, ebx
jge 0x10852ee
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x228]
call fcn.01045295
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.01045295
jmp 0x1085078
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x228]
call fcn.01045295
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.01045295
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x108531f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test byte [ebp + 0x18], 1
je 0x10853d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov ecx, dword [0x12d28f8]
lea edi, [esi + 0x58]
push edi
push 0x101b0a8
push 0x17
push eax
push 0x101b3d8
call fcn.0116ba80
cmp eax, ebx
jl 0x108563c
push dword [edi]
lea ecx, [ebp - 0x234]
call fcn.0108327d
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x250]
call fcn.0126dd22
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x250]
call fcn.012065a8
mov edi, eax
cmp edi, ebx
jl 0x10853b3
push dword [ebp - 0x248]
mov eax, dword [ebp - 0x234]
push dword [ebp - 0x24c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov edi, eax
cmp edi, ebx
jge 0x10853c1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x234]
jmp 0x1085081
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x234]
cmp eax, ebx
je 0x10853d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x230], ebx
push 0x17
lea edi, [esi + 0x3c]
push ebx
mov ecx, edi
je 0x10853ec
push dword [ebp - 0x230]
jmp 0x10853f1
push 0x101b868
call fcn.0108322c
cmp eax, ebx
jl 0x108563c
cmp dword [ebp - 0x224], ebx
je 0x10854f9
push dword [ebp - 0x244]
lea ecx, [ebp - 0x298]
call fcn.01192346
mov byte [ebp - 4], 7
push dword [ebp - 0x224]
lea ecx, [ebp - 0x298]
call fcn.011927df
mov edi, eax
cmp edi, ebx
jge 0x1085449
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x298]
call fcn.01191f23
jmp 0x108508b
mov eax, esi
neg eax
sbb eax, eax
lea ecx, [esi + 0x2c]
and eax, ecx
push eax
push 0x17
lea eax, [ebp - 0x298]
push eax
call fcn.01192fcc
mov edi, eax
cmp edi, ebx
jl 0x1085436
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.01190d36
mov edi, eax
cmp edi, ebx
jl 0x1085436
cmp dword [ebp - 0x244], 0xfbb
jae 0x1085497
mov eax, dword [ebp - 0x23c]
mov byte [eax], 1
push dword [ebp - 0x240]
lea ecx, [ebp - 0x298]
call fcn.0119121d
mov edi, eax
cmp edi, ebx
jl 0x1085436
push dword [ebp - 0x224]
lea ecx, [ebp - 0x23c]
call fcn.01032b44
mov byte [ebp - 4], 8
push dword [eax]
mov ecx, esi
call fcn.010831b6
mov edi, eax
mov byte [ebp - 4], 7
push dword [ebp - 0x23c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jl 0x1085436
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x298]
call fcn.01191f23
jmp 0x1085631
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x240]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x224], ebx
call fcn.01084f04
cmp eax, ebx
jl 0x108563c
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x10850d7
add eax, 0x1c
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
cmp eax, ebx
jl 0x108563c
cmp dword [esi + 0x58], ebx
je 0x10855c5
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 9
mov eax, dword [esi + 0x58]
lea ecx, [ebp - 0x230]
push ecx
push eax
call fcn.01063871
cmp eax, ebx
mov dword [ebp - 0x23c], eax
jge 0x1085586
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x108557b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp - 0x23c]
jmp 0x108563e
mov eax, dword [ebp - 0x230]
cmp eax, ebx
jne 0x108559e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
jmp 0x10850cd
mov ecx, dword [esi + 0xc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x48]
cmp eax, ebx
mov dword [ebp - 0x23c], eax
jl 0x1085568
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x10855c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [edi], ebx
je 0x1085631
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], 0xa
mov edi, dword [edi]
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.01063871
mov edi, eax
cmp edi, ebx
jl 0x1085610
mov eax, dword [ebp - 0x224]
cmp eax, ebx
jne 0x1085600
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
jmp 0x10850cd
mov ecx, dword [esi + 0xc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x48]
mov edi, eax
cmp edi, ebx
jge 0x108561e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
jmp 0x1085081
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x1085631
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x44]
cmp eax, ebx
jge 0x108563e
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.0116ad76
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0116015a
leave
ret 0x14