Function at 0x11899e0
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3044
call fcn.01194980
cmp byte [0x11a4db8], 0
jne 0x1189a13
push 0x10251d4
call fcn.011719e0
push 0x1028dbc
call fcn.011719e0
mov byte [0x11a4db8], 1
push ebx
push esi
xor esi, esi
push edi
push 0x1418
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.01182130
mov eax, dword [ebp + 0x10]
add eax, 0x10f4
push 0x7ff
push eax
lea eax, [ebp - 0x2044]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x2044]
mov word [ebp - 0x1046], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1189a61
mov ebx, dword [sym.imp.msvcrt.dll_wcsncmp]
sub eax, edx
push 4
lea esi, [ebp - 0x2044]
mov edx, esi
sar eax, 1
push 0x10131d4
push edx
mov dword [ebp - 8], eax
lea edi, [ebp - 0x3044]
call ebx
add esp, 0xc
test eax, eax
sete al
mov byte [ebp - 1], al
test al, al
je 0x1189ad1
push 4
lea esi, [ebp - 0x203c]
mov eax, esi
push 0x1028db0
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x1189ad1
mov ecx, 0x5c
mov word [ebp - 0x3044], cx
lea edi, [ebp - 0x3042]
lea esi, [ebp - 0x2036]
mov edx, edi
mov eax, esi
sub edx, esi
jmp 0x1189ae0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1189ae0
lea eax, [ebp - 0x3044]
lea edx, [eax + 2]
jmp 0x1189b00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1189b00
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
mov edi, eax
mov dword [ebp - 0xc], edi
cmp byte [edx + 0x6193], cl
jne 0x1189b64
cmp byte [ebp - 1], cl
jne 0x1189b48
mov esi, dword [ebp + 0x10]
add esi, 0x10f4
push esi
call fcn.0117d0d0
test al, al
jne 0x1189b48
mov ebx, dword [ebp + 0x10]
push esi
lea eax, [ebx + 0x20]
push eax
call fcn.01183190
test al, al
jne 0x1189b67
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1189b59
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push 1
push esi
call fcn.011884d0
cmp byte [ebx + 0x10e1], 0
jne 0x1189bab
cmp byte [ebx + 0x20f4], 0
jne 0x1189bab
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
je 0x1189b48
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1189bb8
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x1189b48
mov eax, dword [ebx + 0x10f0]
cmp eax, 3
jne 0x1189c44
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 8]
lea ecx, [ebx + edi]
lea edx, [ecx + ecx + 0xc]
xor eax, eax
xor ecx, ecx
mov word [esi + 6], ax
mov word [esi + 4], dx
lea eax, [ebp - 0x2044]
mov word [esi + 8], cx
lea edi, [ebx + ebx]
lea edx, [esi + 0x10]
mov ecx, eax
mov dword [esi], 0xa0000003
mov word [esi + 0xa], di
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1189c00
mov edx, dword [ebp - 0xc]
lea eax, [edx + edx]
mov word [esi + 0xe], ax
lea eax, [ebp - 0x3044]
add edi, 2
lea edx, [esi + ebx*2 + 0x12]
mov ecx, eax
mov word [esi + 0xc], di
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1189c30
jmp 0x1189cda
cmp eax, 2
je 0x1189c52
cmp eax, 1
jne 0x1189b48
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 8]
lea edx, [ebx + edi]
lea eax, [edx + edx + 0x10]
xor ecx, ecx
xor edx, edx
mov word [esi + 4], ax
mov word [esi + 8], dx
lea eax, [ebp - 0x2044]
mov word [esi + 6], cx
lea edi, [ebx + ebx]
lea edx, [esi + 0x14]
mov ecx, eax
mov dword [esi], 0xa000000c
mov word [esi + 0xa], di
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1189c90
mov edx, dword [ebp - 0xc]
lea eax, [edx + edx]
mov word [esi + 0xe], ax
lea eax, [ebp - 0x3044]
add edi, 2
lea edx, [esi + ebx*2 + 0x16]
mov ecx, eax
mov word [esi + 0xc], di
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1189cc0
xor edx, edx
cmp byte [ebp - 1], dl
sete dl
mov dword [esi + 0x10], edx
mov ebx, dword [ebp + 0xc]
push 0
push 0x2200000
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1189d6b
movzx ecx, word [esi + 4]
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
add ecx, 8
push ecx
push esi
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x1189d80
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [ebp + 0x10]
inc dword [0x11a1488]
mov dword [0x11a1484], 9
cmp byte [edx + 0x10e1], 0
push ebx
je 0x1189d65
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x1044]
call fcn.01171a70
mov ecx, dword [ebp - 0x1040]
mov al, 1
cmp ecx, 0xffffffff
je 0x1189dc1
cmp byte [ebp - 0x1034], 0
jne 0x1189db7
cmp dword [ebp - 0x1038], 0
jne 0x1189db7
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp eax, 1
sete al
mov dword [ebp - 0x1040], 0xffffffff
xor edx, edx
mov dword [ebp - 0x1038], edx
test al, al
jne 0x1189de6
cmp byte [ebp - 0x1030], al
je 0x1189de6
lea eax, [ebp - 0x1026]
push eax
mov ecx, 0x11a1484
call fcn.0117cbe0
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1040], edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x739c], edx
je 0x1189e00
lea edx, [ebx + 0x1040]
cmp dword [edi + 0x7398], 0
jne 0x1189e0d
xor ecx, ecx
jmp 0x1189e13
lea ecx, [ebx + 0x1038]
cmp dword [edi + 0x7394], 0
jne 0x1189e20
xor eax, eax
jmp 0x1189e26
lea eax, [ebx + 0x1030]
push edx
push ecx
push eax
lea ecx, [ebp - 0x1044]
call fcn.01176500
lea ecx, [ebp - 0x1044]
call fcn.0117cc10
cmp byte [edi + 0x62a6], 0
jne 0x1189e55
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.011835f0
lea ecx, [ebp - 0x1044]
call fcn.011883d0
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc