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

Disassembly:
push ebp
lea ebp, [esp - 0x3044]
mov eax, 0x3044
call fcn.00420e10
push 0xffffffffffffffff
push 0x436cc9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x443620]
xor eax, ebp
mov dword [ebp + 0x3040], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x445ff3], 0
mov edi, dword [ebp + 0x304c]
mov ebx, dword [ebp + 0x3050]
mov esi, dword [ebp + 0x3054]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esi
jne 0x407e3f
push str.SeRestorePrivilege
call fcn.00408a85
push str.SeCreateSymbolicLinkPrivilege
call fcn.00408a85
mov byte [0x445ff3], 1
push 0x2418
lea ecx, [ebp - 0x38]
call fcn.004012cd
and dword [ebp - 4], 0
lea eax, [esi + 0x10fc]
push 0x800
push eax
lea eax, [ebp + 0x2040]
push eax
call fcn.004123db
lea eax, [ebp + 0x2040]
push eax
call fcn.00425dc5
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x2040]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x1040]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x2040]
push 0x438aa8
push eax
call fcn.00429ec7
add esp, 0x10
test eax, eax
sete cl
mov byte [ebp - 0xd], cl
test eax, eax
jne 0x407eb6
lea eax, [ebp + 0x2048]
mov dword [ebp - 0x1c], eax
jmp 0x407ebc
lea eax, [ebp + 0x2040]
test cl, cl
je 0x407eef
push 4
push str.UNC_
push eax
call fcn.00429ec7
add esp, 0xc
test eax, eax
jne 0x407eef
push 0x5c
pop eax
mov word [ebp + 0x1040], ax
lea eax, [ebp + 0x1042]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
add eax, 6
jmp 0x407ef2
mov eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.00429ea5
lea eax, [ebp + 0x1040]
push eax
call fcn.00425dc5
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp byte [edi + 0x7083], 0
jne 0x407f4e
cmp byte [ebp - 0xd], 0
jne 0x4081cf
lea eax, [esi + 0x10fc]
push eax
call fcn.0040d973
test al, al
jne 0x4081cf
lea eax, [esi + 0x10fc]
push eax
push ebx
lea eax, [esi + 0x28]
push eax
push edi
call fcn.00408837
test al, al
je 0x4081cf
movzx eax, byte [edi + 0x704b]
push eax
push 1
push ebx
call fcn.0040b861
push ebx
call fcn.0040ba3b
test al, al
je 0x407f85
push ebx
call fcn.0040ba4d
push eax
call fcn.0040baae
push ebx
test al, al
je 0x407f80
call fcn.0040b96f
jmp 0x407f85
call fcn.0040b9d5
cmp byte [esi + 0x10e9], 0
jne 0x408050
cmp byte [esi + 0x20fc], 0
jne 0x408050
xor eax, eax
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x407fcc
push ebx
mov ecx, 0x446054
call fcn.0040798a
jmp 0x4081cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10f8]
cmp eax, 3
jne 0x408086
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
movzx ecx, ax
mov eax, dword [ebp - 0x18]
movzx edi, ax
mov dword [edx], 0xa0000003
lea esi, [ecx + ecx]
mov word [edx + 0xa], si
lea eax, [edi + ecx]
lea eax, [eax*2 + 0xc]
mov word [edx + 4], ax
xor eax, eax
mov dword [edx + 6], eax
lea eax, [ebp + 0x2040]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.00429ea5
lea eax, [esi + 2]
mov esi, dword [ebp - 0x38]
mov word [esi + 0xc], ax
lea eax, [edi + edi]
mov word [esi + 0xe], ax
lea eax, [ebp + 0x1040]
push eax
mov eax, dword [ebp - 0x20]
add eax, 9
lea eax, [esi + eax*2]
push eax
call fcn.00429ea5
add esp, 0x10
jmp 0x408107
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407fd3
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0x14
call fcn.004078a8
push 9
mov ecx, 0x446054
call fcn.00407af1
jmp 0x4081d1
cmp eax, 2
je 0x408094
cmp eax, 1
jne 0x4081cf
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
movzx ecx, ax
mov eax, dword [ebp - 0x18]
movzx edi, ax
mov dword [edx], 0xa000000c
lea esi, [ecx + ecx]
mov word [edx + 0xa], si
lea eax, [edi + ecx]
lea eax, [eax*2 + 0x10]
mov word [edx + 4], ax
xor eax, eax
mov dword [edx + 6], eax
lea eax, [ebp + 0x2040]
push eax
lea eax, [edx + 0x14]
push eax
call fcn.00429ea5
lea eax, [esi + 2]
mov esi, dword [ebp - 0x38]
mov word [esi + 0xc], ax
lea eax, [edi + edi]
mov word [esi + 0xe], ax
lea eax, [ebp + 0x1040]
push eax
mov eax, dword [ebp - 0x20]
add eax, 0xb
lea eax, [esi + eax*2]
push eax
call fcn.00429ea5
movzx eax, byte [ebp - 0xd]
add esp, 0x10
xor eax, 1
mov dword [esi + 0x10], eax
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push eax
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408141
mov esi, 0x446054
push ebx
mov ecx, esi
call fcn.0040798a
push 9
mov ecx, esi
call fcn.00407af1
jmp 0x4081cf
xor eax, eax
lea ecx, [ebp - 0x3c]
push eax
push ecx
push eax
push eax
movzx eax, word [esi + 4]
add eax, 8
push eax
push esi
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4081d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x15
call fcn.004078a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40818f
cmp eax, 0x522
jne 0x40819f
call fcn.00412588
test al, al
jne 0x40819f
push 0x18
call fcn.004021d6
mov esi, 0x446054
mov ecx, esi
call fcn.00407b39
push 9
mov ecx, esi
call fcn.00407af1
mov edi, dword [ebp - 0x28]
push ebx
cmp byte [edi + 0x10e9], 0
je 0x4081c9
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4081cf
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
mov esi, dword [ebp - 0x38]
jmp 0x40825c
lea ecx, [ebp]
call fcn.0040ac6f
push edi
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00408a64
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, dword [edx + 0x81c0]
neg ecx
lea eax, [edi + 0x1048]
sbb ecx, ecx
and ecx, eax
lea eax, [edi + 0x1040]
push ecx
mov ecx, dword [edx + 0x81bc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [edi + 0x1038]
push ecx
mov ecx, dword [edx + 0x81b8]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp]
call fcn.0040b552
lea ecx, [ebp]
call fcn.0040ad40
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x7094], 0
jne 0x408252
push dword [edi + 0x24]
push ebx
call fcn.0040c055
lea ecx, [ebp]
mov bl, 1
call fcn.0040acb3
test esi, esi
je 0x408267
push esi
call fcn.0042640a
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3040]
xor ecx, ebp
call fcn.00420983
add ebp, 0x3044
leave
ret 0xc