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

Disassembly:
push ebp
lea ebp, [esp - 0x3088]
mov eax, 0x3088
call fcn.004a63c0
push 0xffffffffffffffff
push 0x4b2325
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp + 0x3084], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4dacd2], 0
mov eax, dword [ebp + 0x3090]
mov edi, dword [ebp + 0x3098]
mov ebx, dword [ebp + 0x3094]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
jne 0x46b88c
push str.SeRestorePrivilege
call fcn.0046d3e0
push str.SeCreateSymbolicLinkPrivilege
call fcn.0046d3e0
add esp, 8
mov byte [0x4dacd2], 1
push 0x1418
push 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x40], 0x1418
call fcn.0047fa0e
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x46b8c0
mov ecx, 0x4d7b3c
call fcn.00450710
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0x1418
push 0x800
lea esi, [edi + 0x1104]
mov dword [ebp - 4], 0
lea eax, [ebp + 0x2084]
push esi
push eax
call fcn.00452f20
lea ecx, [ebp + 0x2084]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b8f5
push 4
sub ecx, edx
lea edi, [ebp + 0x2084]
mov eax, edi
sar ecx, 1
push 0x4b82ac
push eax
mov dword [ebp - 0x2c], ecx
call fcn.00484838
add esp, 0xc
test eax, eax
sete dl
mov byte [ebp - 0xd], dl
test eax, eax
jne 0x46b931
lea edi, [ebp + 0x208c]
test dl, dl
je 0x46b963
push 4
push str.UNC_
push edi
call fcn.00484838
mov dl, byte [ebp - 0xd]
add esp, 0xc
test eax, eax
jne 0x46b963
mov eax, 0x5c
lea ecx, [ebp + 0x1086]
mov word [ebp + 0x1084], ax
add edi, 6
jmp 0x46b969
lea ecx, [ebp + 0x1084]
sub ecx, edi
jmp 0x46b970
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x46b970
lea edi, [ebp + 0x1084]
lea ecx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x46b990
mov eax, dword [ebp - 0x20]
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x28], edi
cmp byte [eax + 0x719f], 0
jne 0x46bafc
test dl, dl
jne 0x46bf25
push esi
call fcn.00452310
add esp, 4
test al, al
jne 0x46bf25
mov eax, dword [ebp - 0x1c]
mov edi, ebx
add eax, 0x28
push eax
call fcn.00452360
add esp, 4
test al, al
jne 0x46bf25
push esi
call fcn.00452360
add esp, 4
test al, al
jne 0x46bf25
movzx eax, word [esi]
xor edx, edx
mov dword [ebp - 0x14], edx
test ax, ax
je 0x46ba71
mov ecx, eax
xor edi, edi
cmp cx, 0x2e
jne 0x46ba4b
cmp word [esi + 2], cx
jne 0x46ba4b
movzx eax, word [esi + 4]
push eax
call fcn.00452440
add esp, 4
test al, al
jne 0x46ba2a
cmp word [esi + 4], 0
jne 0x46ba48
test edi, edi
je 0x46ba3f
movzx eax, word [esi - 2]
push eax
call fcn.00452440
add esp, 4
test al, al
je 0x46ba48
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
jmp 0x46ba4b
mov edx, dword [ebp - 0x14]
movzx eax, word [esi + 2]
add esi, 2
inc edi
mov ecx, eax
test ax, ax
jne 0x46ba06
mov edi, ebx
test edx, edx
jle 0x46ba71
push ebx
call fcn.0046d190
add esp, 4
test al, al
jne 0x46bf25
mov eax, dword [ebp - 0x1c]
add eax, 0x28
push eax
call fcn.0046b750
mov ecx, dword [ebp - 0x20]
add esp, 4
add ecx, 0x2016
mov dword [ebp - 0x24], eax
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46ba91
sub esi, edx
sar esi, 1
je 0x46bad9
push esi
push ecx
push ebx
call fcn.00484838
add esp, 0xc
test eax, eax
jne 0x46bad9
movzx eax, word [ebx + esi*2]
lea edi, [ebx + esi*2]
push eax
call fcn.00452440
add esp, 4
test al, al
je 0x46bad9
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.00452440
add esp, 4
test al, al
jne 0x46bac5
push edi
call fcn.0046b750
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp dword [ebp - 0x24], ecx
jl 0x46bf25
cmp eax, ecx
jl 0x46bf25
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x714f]
push eax
push 1
push ebx
call fcn.0045b170
push ebx
call fcn.0045b3c0
add esp, 0x10
test al, al
je 0x46bb3c
push ebx
call fcn.0045b430
push eax
call fcn.0045b4c0
add esp, 8
push ebx
test al, al
je 0x46bb34
call fcn.0045b2a0
jmp 0x46bb39
call fcn.0045b330
add esp, 4
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0x10f1], 0
jne 0x46bc35
cmp byte [esi + 0x2104], 0
jne 0x46bc35
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x46bb8c
push ebx
mov ecx, 0x4d7b3c
call fcn.00450530
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x46bfb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1100]
cmp eax, 3
jne 0x46bcf9
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
movzx ecx, dx
mov dword [eax], 0xa0000003
movzx eax, di
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
add eax, ecx
lea eax, [eax*2 + 0xc]
mov word [edi + 4], ax
xor eax, eax
mov dword [edi + 6], eax
lea eax, [ecx + ecx]
mov dword [ebp - 0x28], eax
lea ecx, [ebp + 0x2084]
mov word [edi + 0xa], ax
mov esi, ecx
mov eax, edi
sub eax, esi
lea esi, [eax + 0x10]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x46bbe5
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x1084]
add eax, 2
mov word [edi + 0xc], ax
mov eax, dword [ebp - 0x24]
add eax, eax
mov word [edi + 0xe], ax
lea eax, [edx*2 + 0x12]
mov edx, ecx
sub eax, edx
lea edx, [eax + edi]
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x46bc20
jmp 0x46bdaa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46bb93
lea ecx, [ebp + 0x1038]
mov dword [ebp + 0x1040], 0x4c4d38
mov dword [ebp + 0x1044], 0x4c4d38
mov dword [ebp + 0x1048], 0x4c4d38
mov dword [ebp + 0x104c], 0x4c4d38
mov dword [ebp + 0x1050], 0x4c4d38
mov dword [ebp + 0x1054], 0x4c4d38
mov dword [ebp + 0x1058], eax
mov dword [ebp + 0x105c], eax
mov dword [ebp + 0x1060], eax
mov dword [ebp + 0x1064], eax
mov dword [ebp + 0x1068], eax
mov dword [ebp + 0x106c], eax
mov dword [ebp + 0x1070], eax
mov dword [ebp + 0x1074], eax
mov dword [ebp + 0x107c], eax
mov dword [ebp + 0x1080], 0x14
mov dword [ebp + 0x1038], eax
mov dword [ebp + 0x103c], ebx
mov dword [ebp + 0x1078], 2
call fcn.0043e7d0
push 9
mov ecx, 0x4d7b3c
call fcn.00450980
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x46bfb8
cmp eax, 2
je 0x46bd07
cmp eax, 1
jne 0x46bf25
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
movzx ecx, dx
mov dword [eax], 0xa000000c
movzx eax, di
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
add eax, ecx
lea eax, [eax*2 + 0x10]
mov word [edi + 4], ax
xor eax, eax
mov dword [edi + 6], eax
lea eax, [ecx + ecx]
mov dword [ebp - 0x28], eax
lea ecx, [ebp + 0x2084]
mov word [edi + 0xa], ax
mov esi, ecx
mov eax, edi
sub eax, esi
lea esi, [eax + 0x14]
lea ebx, [ebx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x46bd50
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x1084]
add eax, 2
mov word [edi + 0xc], ax
mov eax, dword [ebp - 0x24]
add eax, eax
mov word [edi + 0xe], ax
lea eax, [edx*2 + 0x16]
mov edx, ecx
sub eax, edx
lea edx, [eax + edi]
jmp 0x46bd90
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x46bd90
movzx eax, byte [ebp - 0xd]
xor eax, 1
mov dword [edi + 0x10], eax
push 0
push 0x2200000
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46bdeb
push ebx
mov ecx, 0x4d7b3c
call fcn.00450530
push 9
mov ecx, 0x4d7b3c
call fcn.00450980
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x46bfb8
push 0
lea eax, [ebp - 0x30]
push eax
movzx eax, word [edi + 4]
push 0
push 0
add eax, 8
push eax
push edi
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x46bf2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x15
call fcn.00452f70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46be3c
cmp eax, 0x522
jne 0x46beec
call fcn.0045a800
test al, al
jne 0x46beec
xor eax, eax
mov dword [ebp + 0x1038], 0x4c4d38
lea ecx, [ebp + 0x1038]
mov dword [ebp + 0x103c], 0x4c4d38
mov dword [ebp + 0x1040], 0x4c4d38
mov dword [ebp + 0x1044], 0x4c4d38
mov dword [ebp + 0x1048], 0x4c4d38
mov dword [ebp + 0x104c], 0x4c4d38
mov dword [ebp + 0x1050], 0x4c4d38
mov dword [ebp + 0x1054], 0x4c4d38
mov dword [ebp + 0x1058], eax
mov dword [ebp + 0x105c], eax
mov dword [ebp + 0x1060], eax
mov dword [ebp + 0x1064], eax
mov dword [ebp + 0x1068], eax
mov dword [ebp + 0x106c], eax
mov dword [ebp + 0x1070], eax
mov dword [ebp + 0x1074], eax
mov dword [ebp + 0x1078], eax
mov dword [ebp + 0x107c], eax
mov dword [ebp + 0x1080], 0x18
call fcn.0043e7d0
mov ecx, 0x4d7b3c
call fcn.0043e7d0
push 9
mov ecx, 0x4d7b3c
call fcn.00450980
mov eax, dword [ebp - 0x1c]
push ebx
cmp byte [eax + 0x10f1], 0
je 0x46bf1f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x46bfb8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x46bfb8
lea ecx, [ebp]
call fcn.0045db60
mov eax, dword [ebp]
lea ecx, [ebp]
mov byte [ebp - 4], 7
call dword [eax + 8]
mov edx, dword [ebp - 0x20]
mov dword [ebp + 8], esi
mov esi, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x84e0]
neg ecx
lea eax, [esi + 0x1050]
sbb ecx, ecx
and ecx, eax
lea eax, [esi + 0x1048]
push ecx
mov ecx, dword [edx + 0x84dc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [esi + 0x1040]
push ecx
mov ecx, dword [edx + 0x84d8]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [ebp]
call fcn.0045e610
lea ecx, [ebp]
call fcn.0045dda0
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x73b2], 0
jne 0x46bfae
push dword [esi + 0x24]
push ebx
call fcn.0045b7f0
add esp, 8
lea ecx, [ebp]
mov bl, 1
call fcn.0045dbb0
test edi, edi
je 0x46bfc5
push edi
call fcn.0047a879
add esp, 4
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 + 0x3084]
xor ecx, ebp
call fcn.0044ae26
lea esp, [ebp + 0x3088]
pop ebp
ret