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

Disassembly:
mov eax, 0x1275e73
call fcn.01160168
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 0x108485a
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.01082ae9
cmp eax, ebx
jl 0x1084ecd
lea eax, [ebp - 0x240]
lea ecx, [esi + 0xc]
push eax
mov dword [ebp - 0x240], ebx
call fcn.0117e889
cmp eax, ebx
jl 0x1084ecd
cmp dword [ebp - 0x240], ebx
jne 0x1084864
mov eax, 0x80004003
jmp 0x1084ecd
push esi
lea ecx, [ebp - 0x25c]
call fcn.0116ae78
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x25c]
call fcn.0116ab68
cmp eax, ebx
jl 0x1084eba
push edi
lea ecx, [esi + 0x5c]
call fcn.01032977
test byte [ebp + 0x18], 2
je 0x1084b9d
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.0107d39e
mov edi, eax
cmp edi, ebx
jge 0x1084910
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x10848e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x10848f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x1084909
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, edi
jmp 0x1084ebc
mov eax, dword [ebp - 0x238]
cmp eax, ebx
jne 0x108495f
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x108492e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x1084942
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x1084955
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004003
jmp 0x1084ebc
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
push eax
call dword [ecx + 0x58]
mov edi, eax
cmp edi, ebx
jl 0x10848ce
cmp dword [ebp - 0x22c], ebx
je 0x108491a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x1084992
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x22c]
call fcn.0104559e
mov edi, eax
cmp edi, ebx
jl 0x10848e2
cmp dword [ebp - 0x21c], ebx
je 0x108492e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x10849ce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x100355c
lea ecx, [ebp - 0x220]
call fcn.01045d3e
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 0x1084b58
lea ecx, [ebp - 0x220]
call fcn.01044f6f
mov edi, eax
cmp edi, ebx
jl 0x1084b58
mov eax, dword [ebp - 0x220]
cmp dword [eax - 8], ebx
jne 0x1084a76
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jne 0x1084a64
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.010454b8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x1084a5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004005
jmp 0x1084ebc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.01032977
lea ecx, [ebp - 0x220]
call fcn.01082c14
mov edi, eax
cmp edi, ebx
jl 0x1084b58
mov dword [ebp - 0x234], ebx
lea ecx, [ebp - 0x228]
call fcn.01044ec9
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x220]
push 0x104
lea ecx, [ebp - 0x228]
call fcn.0103299e
push eax
push ebx
push 0x10094fc
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
cmp edi, ebx
jl 0x1084b49
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
call fcn.01032a0b
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1084b09
lea ecx, [ebp - 0x228]
call fcn.01044f6f
mov edi, eax
cmp edi, ebx
jl 0x1084b49
push ebx
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1084b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x228]
call fcn.010454b8
inc dword [ebp - 0x234]
cmp dword [ebp - 0x234], 0x186a0
jl 0x1084a91
jmp 0x1084b7b
mov ecx, dword [ebp - 0x240]
push 1
push dword [ebp - 0x228]
call fcn.0117c64d
mov edi, eax
cmp edi, ebx
jge 0x1084b6c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x228]
call fcn.010454b8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.010454b8
jmp 0x10848f6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x228]
call fcn.010454b8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.010454b8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x1084b9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test byte [ebp + 0x18], 1
je 0x1084c52
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.0116b561
cmp eax, ebx
jl 0x1084eba
push dword [edi]
lea ecx, [ebp - 0x234]
call fcn.01082ac0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x250]
call fcn.01033e96
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x250]
call fcn.012064de
mov edi, eax
cmp edi, ebx
jl 0x1084c31
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 0x1084c3f
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x234]
jmp 0x10848ff
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x234]
cmp eax, ebx
je 0x1084c52
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 0x1084c6a
push dword [ebp - 0x230]
jmp 0x1084c6f
push 0x101b868
call fcn.01082a6f
cmp eax, ebx
jl 0x1084eba
cmp dword [ebp - 0x224], ebx
je 0x1084d77
push dword [ebp - 0x244]
lea ecx, [ebp - 0x298]
call fcn.01191fa2
mov byte [ebp - 4], 7
push dword [ebp - 0x224]
lea ecx, [ebp - 0x298]
call fcn.0119243b
mov edi, eax
cmp edi, ebx
jge 0x1084cc7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x298]
call fcn.01191b7f
jmp 0x1084909
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.01192c28
mov edi, eax
cmp edi, ebx
jl 0x1084cb4
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.011909d0
mov edi, eax
cmp edi, ebx
jl 0x1084cb4
cmp dword [ebp - 0x244], 0xfba
jae 0x1084d15
mov eax, dword [ebp - 0x23c]
mov byte [eax], 1
push dword [ebp - 0x240]
lea ecx, [ebp - 0x298]
call fcn.01190eb7
mov edi, eax
cmp edi, ebx
jl 0x1084cb4
push dword [ebp - 0x224]
lea ecx, [ebp - 0x23c]
call fcn.01257752
mov byte [ebp - 4], 8
push dword [eax]
mov ecx, esi
call fcn.010829f9
mov edi, eax
mov byte [ebp - 4], 7
push dword [ebp - 0x23c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jl 0x1084cb4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x298]
call fcn.01191b7f
jmp 0x1084eaf
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x240]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x224], ebx
call fcn.01084782
cmp eax, ebx
jl 0x1084eba
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x1084955
add eax, 0x1c
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
cmp eax, ebx
jl 0x1084eba
cmp dword [esi + 0x58], ebx
je 0x1084e43
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.010632e9
cmp eax, ebx
mov dword [ebp - 0x23c], eax
jge 0x1084e04
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x1084df9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp - 0x23c]
jmp 0x1084ebc
mov eax, dword [ebp - 0x230]
cmp eax, ebx
jne 0x1084e1c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
jmp 0x108494b
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 0x1084de6
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x1084e43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [edi], ebx
je 0x1084eaf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], 0xa
mov edi, dword [edi]
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.010632e9
mov edi, eax
cmp edi, ebx
jl 0x1084e8e
mov eax, dword [ebp - 0x224]
cmp eax, ebx
jne 0x1084e7e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
jmp 0x108494b
mov ecx, dword [esi + 0xc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x48]
mov edi, eax
cmp edi, ebx
jge 0x1084e9c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
jmp 0x10848ff
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x1084eaf
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 0x1084ebc
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.0116aa7b
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.0115fe73
leave
ret 0x14