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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3044
call fcn.011972f0
cmp byte [0x11a6d98], 0
jne 0x118c373
push 0x102546c
call fcn.01173bd0
push 0x102943c
call fcn.01173bd0
mov byte [0x11a6d98], 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.01184d20
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 0x118c3c1
mov ebx, dword [sym.imp.msvcrt.dll_wcsncmp]
sub eax, edx
push 4
lea esi, [ebp - 0x2044]
mov edx, esi
sar eax, 1
push 0x101338c
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 0x118c431
push 4
lea esi, [ebp - 0x203c]
mov eax, esi
push 0x1029430
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x118c431
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 0x118c440
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x118c440
lea eax, [ebp - 0x3044]
lea edx, [eax + 2]
jmp 0x118c460
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x118c460
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 0x118c4c4
cmp byte [ebp - 1], cl
jne 0x118c4a8
mov esi, dword [ebp + 0x10]
add esi, 0x10f4
push esi
call fcn.0117fa40
test al, al
jne 0x118c4a8
mov ebx, dword [ebp + 0x10]
push esi
lea eax, [ebx + 0x20]
push eax
call fcn.01185b00
test al, al
jne 0x118c4c7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x118c4b9
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.0118ae30
cmp byte [ebx + 0x10e1], 0
jne 0x118c50b
cmp byte [ebx + 0x20f4], 0
jne 0x118c50b
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 0x118c4a8
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x118c518
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x118c4a8
mov eax, dword [ebx + 0x10f0]
cmp eax, 3
jne 0x118c5a4
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 0x118c560
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 0x118c590
jmp 0x118c63a
cmp eax, 2
je 0x118c5b2
cmp eax, 1
jne 0x118c4a8
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 0x118c5f0
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 0x118c620
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 0x118c6cb
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 0x118c6e0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [ebp + 0x10]
inc dword [0x11a3478]
mov dword [0x11a3474], 9
cmp byte [edx + 0x10e1], 0
push ebx
je 0x118c6c5
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.01173c60
mov ecx, dword [ebp - 0x1040]
mov al, 1
cmp ecx, 0xffffffff
je 0x118c721
cmp byte [ebp - 0x1034], 0
jne 0x118c717
cmp dword [ebp - 0x1038], 0
jne 0x118c717
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 0x118c746
cmp byte [ebp - 0x1030], al
je 0x118c746
lea eax, [ebp - 0x1026]
push eax
mov ecx, 0x11a3474
call fcn.0117f520
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1040], edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x739c], edx
je 0x118c760
lea edx, [ebx + 0x1040]
cmp dword [edi + 0x7398], 0
jne 0x118c76d
xor ecx, ecx
jmp 0x118c773
lea ecx, [ebx + 0x1038]
cmp dword [edi + 0x7394], 0
jne 0x118c780
xor eax, eax
jmp 0x118c786
lea eax, [ebx + 0x1030]
push edx
push ecx
push eax
lea ecx, [ebp - 0x1044]
call fcn.011786c0
lea ecx, [ebp - 0x1044]
call fcn.0117f580
cmp byte [edi + 0x62a6], 0
jne 0x118c7b5
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.01185f60
lea ecx, [ebp - 0x1044]
call fcn.0118ad30
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