Function at 0x409337
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x4393e3
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x448780]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xd4]
xor ebx, ebx
mov edi, dword [ebp + 0xd8]
mov esi, dword [ebp + 0xdc]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], esi
cmp byte [0x44d0c3], bl
jne 0x4093b3
push str.SeRestorePrivilege
call fcn.00416e23
push str.SeCreateSymbolicLinkPrivilege
call fcn.00416e23
mov byte [0x44d0c3], 1
mov eax, dword [esi + 0x12c]
lea ecx, [ebp - 0x3c]
add esi, 0x11c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x3c], ebx
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 0x38], ebx
push eax
mov dword [ebp - 0x34], ebx
call fcn.00409028
push ebx
push 0x43b92c
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040a30a
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x409414
lea eax, [ebp - 0x15]
push eax
push 0xffffffffffffffff
push 4
push esi
lea ecx, [ebp + 0x80]
call fcn.0040722c
lea ecx, [ebp + 0x80]
push 5
jmp 0x409421
push esi
lea ecx, [ebp + 0x68]
call fcn.004071f8
mov ecx, eax
push 2
pop eax
push ecx
lea ecx, [ebp + 0x98]
mov dword [ebp - 0x14], eax
call fcn.00401482
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 2
test al, 2
je 0x409450
and eax, 0xfffffffd
lea ecx, [ebp + 0x68]
mov dword [ebp - 0x14], eax
call fcn.00401ac8
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test al, 1
je 0x409463
lea ecx, [ebp + 0x80]
call fcn.00401ac8
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x4094da
push ebx
push str.UNC_
lea ecx, [ebp + 0x98]
call fcn.0040a30a
cmp eax, 0xffffffff
je 0x4094d7
lea eax, [ebp - 0x15]
push eax
push 0xffffffffffffffff
push 3
lea eax, [ebp + 0x98]
push eax
lea ecx, [ebp + 0xb0]
call fcn.0040722c
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 4
push eax
push 0x43b944
lea eax, [ebp + 0x50]
push eax
call fcn.004036a6
push eax
lea ecx, [ebp + 0x98]
call fcn.00402d44
lea ecx, [ebp + 0x50]
call fcn.00401ac8
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
call fcn.00401ac8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xa8]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x93], 0
jne 0x40953a
mov ebx, dword [ebp - 0x28]
cmp ecx, 0xffffffff
jne 0x409523
push ebx
call fcn.00410fe6
test al, al
jne 0x409523
push ebx
sub esp, 0x18
mov ecx, esp
push edi
call fcn.004014a6
mov eax, dword [ebp - 0x1c]
add eax, 0x28
push eax
push dword [ebp - 0x20]
call fcn.00409f6f
test al, al
jne 0x40953a
mov eax, dword [ebp - 0x1c]
push ebx
add eax, 0x28
push eax
push 0x68
call fcn.004039bf
xor eax, eax
inc eax
jmp 0x4096c4
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a6
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
movzx eax, byte [eax + 0x5b]
push eax
push 1
lea eax, [ebp + 0xb0]
push eax
call fcn.0040e1a5
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
call fcn.00401ac8
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a6
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 6
push eax
call fcn.0040e3c3
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00401ac8
test bl, bl
je 0x409614
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a6
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 7
push eax
call fcn.0040e3d5
push eax
call fcn.0040e47e
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00401ac8
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a6
test bl, bl
je 0x4095f5
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 8
push eax
call fcn.0040e26b
jmp 0x409605
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 9
push eax
call fcn.0040e317
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
call fcn.00401ac8
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x101], 0
jne 0x409680
cmp byte [eax + 0x134], 0
jne 0x409680
xor ebx, ebx
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x409677
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a6
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 0xb
push eax
mov ecx, 0x44d110
call fcn.00408b73
lea ecx, [ebp + 0xb0]
call fcn.00401ac8
jmp 0x4098ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4096d1
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a6
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040e18f
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00401ac8
test bl, bl
jne 0x4096cf
lea eax, [ebp - 0x24]
push eax
push 0x43b6e8
push 0x14
call fcn.00409175
push 9
pop eax
push eax
mov ecx, 0x44d110
jmp 0x40985a
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x118]
cmp eax, 3
jne 0x409768
mov eax, dword [ebp - 0x2c]
movzx ecx, ax
mov eax, dword [ebp - 0x14]
movzx eax, ax
add eax, ecx
mov dword [esi], 0xa0000003
lea eax, [eax*2 + 0xc]
mov word [esi + 4], ax
xor eax, eax
mov dword [esi + 6], eax
lea eax, [ecx + ecx]
mov word [esi + 0xa], ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 7
jbe 0x40971c
mov eax, dword [eax]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0042a9c6
mov eax, dword [ebp - 0x10]
add eax, 2
pop ecx
mov word [esi + 0xc], ax
pop ecx
mov ecx, dword [ebp - 0x14]
movzx eax, cx
add eax, eax
mov word [esi + 0xe], ax
lea eax, [ebp + 0x98]
cmp dword [ebp + 0xac], 7
jbe 0x409753
mov eax, dword [ebp + 0x98]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 9
lea eax, [esi + eax*2]
push eax
call fcn.0042a9c6
jmp 0x409802
cmp eax, 2
je 0x409776
cmp eax, 1
jne 0x4098ef
mov eax, dword [ebp - 0x2c]
movzx ecx, ax
mov eax, dword [ebp - 0x14]
movzx eax, ax
add eax, ecx
mov dword [esi], 0xa000000c
lea eax, [eax*2 + 0x10]
mov word [esi + 4], ax
xor eax, eax
mov dword [esi + 6], eax
lea eax, [ecx + ecx]
mov word [esi + 0xa], ax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 7
jbe 0x4097af
mov eax, dword [eax]
push eax
lea eax, [esi + 0x14]
push eax
call fcn.0042a9c6
mov eax, dword [ebp - 0x30]
add eax, 2
pop ecx
mov word [esi + 0xc], ax
pop ecx
mov ecx, dword [ebp - 0x14]
movzx eax, cx
add eax, eax
mov word [esi + 0xe], ax
lea eax, [ebp + 0x98]
cmp dword [ebp + 0xac], 7
jbe 0x4097e6
mov eax, dword [ebp + 0x98]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0xb
lea eax, [esi + eax*2]
push eax
call fcn.0042a9c6
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
sete al
mov dword [esi + 0x10], eax
pop ecx
pop ecx
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, 0xffffffff
jne 0x409864
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a6
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 0xc
mov ebx, 0x44d110
push eax
mov ecx, ebx
call fcn.00408b73
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 3
call fcn.00401ac8
push 9
mov ecx, ebx
call fcn.00408d82
jmp 0x4098ef
push ebx
lea eax, [ebp - 0x40]
push eax
movzx eax, word [esi + 4]
push ebx
push ebx
add eax, 8
push eax
push esi
push 0x900a4
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4098f6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24]
push eax
push 0x43b6e8
push 0x15
call fcn.00409175
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4098af
cmp eax, 0x522
jne 0x4098bf
call fcn.00416662
test al, al
jne 0x4098bf
push 0x18
call fcn.0040398e
mov ebx, 0x44d110
mov ecx, ebx
call fcn.00408dca
push 9
mov ecx, ebx
call fcn.00408d82
mov eax, dword [ebp - 0x1c]
push edi
cmp byte [eax + 0x101], 0
je 0x4098e9
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4098ef
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
jmp 0x409993
lea ecx, [ebp]
call fcn.0040d476
push dword [ebp - 0x10]
lea ecx, [ebp]
mov byte [ebp - 4], 0xd
call fcn.0040a205
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x1d8]
neg ecx
lea eax, [ebx + 0x60]
sbb ecx, ecx
and ecx, eax
lea eax, [ebx + 0x58]
push ecx
mov ecx, dword [edx + 0x1d4]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebx + 0x50]
push ecx
mov ecx, dword [edx + 0x1d0]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp]
call fcn.0040de52
lea ecx, [ebp]
call fcn.0040d560
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xaa], 0
jne 0x409989
push edi
lea ecx, [ebp + 0xb0]
call fcn.004014a6
push dword [ebx + 0x24]
lea eax, [ebp + 0xb0]
mov byte [ebp - 4], 0xe
push eax
call fcn.0040ec2b
lea ecx, [ebp + 0xb0]
call fcn.00401ac8
lea ecx, [ebp]
mov bl, 1
call fcn.0040d4d6
lea ecx, [ebp + 0x98]
call fcn.00401ac8
test esi, esi
je 0x4099d0
mov eax, dword [ebp - 0x34]
sub eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], eax
cmp eax, 0x1000
jb 0x4099c7
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a0b
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.00425396
pop ecx
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 + 0xc8]
xor ecx, ebp
call fcn.004253a4
add ebp, 0xcc
leave
ret 0xc