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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x16c], edx
mov ecx, dword [0x1025b434]
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x17c], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x184], edi
test ecx, ecx
je 0x1018c513
mov eax, dword [ecx]
lea ebx, [ebp - 0x17c]
push ebx
push 1
push edx
push ecx
call dword [eax + 0x28]
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x1018c513
mov ecx, dword [edi + 0x10]
cmp dword [ecx - 0xc], 0
jne 0x1018be5f
mov dword [ebp - 0x158], 0
lea edx, [ebp - 0x158]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x158]
test eax, eax
jne 0x1018be1d
xor edx, edx
jmp 0x1018be43
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x15c], ecx
jmp 0x1018be30
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x1018be30
sub edx, dword [ebp - 0x15c]
sar edx, 1
push edx
push eax
lea ecx, [edi + 0x10]
call fcn.10003740
push dword [ebp - 0x158]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x178], 0
lea edx, [ebp - 0x178]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x180]
mov dword [ebp - 0x180], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor eax, eax
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x180], eax
jbe 0x1018bebe
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x174]
xor ecx, ecx
mov dword [ebp - 0x170], ecx
test eax, eax
je 0x1018bedd
mov ecx, dword [eax]
lea edx, [ebp - 0x170]
push edx
push eax
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x170]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1018c4c0
mov edx, dword [ebp - 0x16c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 7
mov word [ebp - 0x11c], ax
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1018bf20
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x11c]
call fcn.100070c0
mov eax, dword [esi]
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
xor eax, eax
cmp dword [ebp - 0x164], 1
mov ecx, edx
mov dword [ebp - 0x13c], 0
sete al
mov dword [ebp - 0x138], 7
lea ebx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [ebp - 0x154], eax
mov eax, dword [esi + 0xe4]
mov dword [ebp - 0x150], eax
xor eax, eax
mov word [ebp - 0x14c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1018bf93
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14c]
call fcn.100070c0
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.10005170
mov edx, dword [ebp - 0x16c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1018bfe1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x11c]
call fcn.10005250
lea eax, [edi + 0x120]
mov ecx, esi
push eax
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x170]
lea eax, [ebp - 0x154]
push eax
mov eax, dword [esi]
push dword [edi + 0x14]
call dword [eax + 0x78]
push eax
call fcn.100a7350
add esp, 0x18
test eax, eax
jne 0x1018c031
lea ecx, [ebp - 0x154]
lea esi, [eax + 0x64]
call fcn.100a68a0
jmp 0x1018c4c2
mov esi, dword [ebp - 0x174]
mov dword [ebp - 0x1b8], 0
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1b4], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1ac], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a4], 0
push esi
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0xffffffff
mov dword [ebp - 0x188], 0
call fcn.1003aba0
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffffc
cmp eax, 2
ja 0x1018c441
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x198], 4
mov dword [ebp - 0x190], 4
mov dword [ebp - 0x18c], 0xffffffff
test eax, eax
je 0x1018c40c
cmp eax, 1
jne 0x1018c257
lea ecx, [ebp - 0x15c]
call fcn.1001b890
lea ecx, [ebp - 0x164]
call fcn.1001b890
mov esi, dword [ebp - 0x168]
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x15c]
mov ecx, esi
push eax
push 2
lea eax, [ebp - 0x1b8]
push eax
push edi
call fcn.10190a90
mov eax, dword [esi]
lea ecx, [ebp - 0x158]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x184]
mov esi, dword [ebp - 0x164]
add ecx, 0x18
mov edi, dword [ebp - 0x15c]
push dword [eax]
mov dword [ebp - 0x16c], ecx
mov ecx, dword [ebp - 0x168]
push 2
call fcn.101a2170
push eax
mov eax, dword [ebp - 0x168]
push 4
push dword [eax + 0xec]
push esi
mov esi, dword [ebp - 0x16c]
mov ecx, esi
push edi
call fcn.10126970
lea ecx, [ebp - 0x158]
call fcn.10007e10
mov eax, dword [0x10256a68]
test al, 1
jne 0x1018c1e3
or eax, 1
mov dword [0x10256a68], eax
call fcn.10009c50
mov dword [0x10256a64], eax
jmp 0x1018c1e8
mov eax, dword [0x10256a64]
test eax, eax
je 0x1018c225
mov eax, dword [0x1025b458]
test eax, eax
je 0x1018c225
cmp dword [0x1025b45c], 0
je 0x1018c225
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x158], 0
push ecx
call eax
push dword [ebp - 0x158]
call dword [0x1025b45c]
mov eax, dword [ebp - 0x158]
jmp 0x1018c22a
mov eax, 1
mov edi, dword [ebp - 0x184]
mov ecx, esi
push 0
push 0
push eax
push 1
push dword [edi + 0x14]
call fcn.10123f40
lea ecx, [ebp - 0x164]
call fcn.10007e10
lea ecx, [ebp - 0x15c]
call fcn.10007e10
mov ecx, dword [0x1025a784]
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x158], esi
test ecx, ecx
jne 0x1018c3ec
lea ecx, [ebp - 0x15d]
call fcn.10129b80
cmp dword [0x1025a784], 0
jne 0x1018c3db
push 0x214
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x1018c2b8
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100270a0
mov dword [esi], eax
mov byte [esi + 0x210], 0
jmp 0x1018c2ba
xor esi, esi
mov dword [0x1025a784], esi
cmp byte [esi + 0x210], 0
jne 0x1018c3d5
push 0
push 0x1a
lea edi, [esi + 8]
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1018c3d5
push 0x10204534
push 0x104
push edi
call fcn.10026a30
push edi
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x1018c309
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1018c324
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1018c3d5
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x114]
push eax
push 0x10204558
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.1000aa70
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
push 0x104
push edi
call fcn.10026a30
push edi
call fcn.1000aa00
add esp, 4
test eax, eax
jne 0x1018c3c7
push eax
push 0x80
push 1
push eax
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1018c3ce
push eax
mov byte [esi + 0x210], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1018c3ce
mov byte [esi + 0x210], 1
mov ecx, esi
call fcn.10024000
mov esi, dword [ebp - 0x158]
lea ecx, [ebp - 0x15d]
call fcn.10129ba0
mov ecx, dword [0x1025a784]
mov eax, dword [ebp - 0x168]
push 0x10204674
push 0
push esi
push dword [eax + 0xc4]
call fcn.1002b1e0
mov esi, 4
jmp 0x1018c443
mov ecx, dword [ebp - 0x168]
lea eax, [ebp - 0x1b8]
push 0x10202940
push 0x10202940
push 0x10202940
push 0
push 1
push dword [ebp - 0x164]
push 2
push eax
push edi
call fcn.10190070
mov esi, 4
jmp 0x1018c443
xor esi, esi
lea ecx, [ebp - 0x1a4]
call fcn.1002a3c0
mov edx, dword [ebp - 0x1a8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1018c46b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1ac]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1018c488
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1b4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1018c4a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1b8]
test ecx, ecx
je 0x1018c4b3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0x154]
call fcn.100a68a0
jmp 0x1018c4c2
xor esi, esi
push dword [ebp - 0x170]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x174]
test eax, eax
je 0x1018c4de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x178]
test eax, eax
je 0x1018c4ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x17c]
test ecx, ecx
je 0x1018c4fe
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x10