Function at 0x4511e0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9d21
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x128]
mov ecx, 0x47
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x118], 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0042cd20
push eax
lea ecx, [ebp - 0x34]
call fcn.004093c0
mov dword [ebp - 4], 0
lea esi, [ebp - 0x34]
call fcn.0048bd10
lea ecx, [ebp - 0x48]
call fcn.00451ba0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.0048bea0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004516d0
test eax, eax
je 0x451560
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00451c20
jmp 0x451291
lea ecx, [ebp - 0x58]
call fcn.00451d20
lea edx, [ebp - 0xe0]
push edx
lea ecx, [ebp - 0x48]
call fcn.00451c60
push eax
lea ecx, [ebp - 0x58]
call fcn.00451de0
movzx eax, al
test eax, eax
je 0x451560
lea ecx, [ebp - 0x58]
call fcn.00451cf0
mov ecx, eax
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x64]
call fcn.00402f90
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0042cd20
push eax
lea ecx, [ebp - 0x64]
call fcn.0041f030
test eax, eax
je 0x45154f
lea ecx, [ebp - 0x58]
call fcn.00451cf0
push eax
lea ecx, [ebp - 0xfc]
call fcn.0048b780
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x120]
call fcn.0048bea0
push eax
lea ecx, [ebp - 0x70]
call fcn.00402f90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xfc]
call fcn.00406930
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xa0], 0
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x7c]
push edx
push 0x4d9f00
lea ecx, [ebp - 0x70]
call fcn.0042cd20
push eax
call fcn.004a1f38
add esp, 0x18
cmp eax, 4
jne 0x451543
lea ecx, [ebp - 0xb4]
call fcn.00451ba0
mov byte [ebp - 4], 6
push 1
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x64]
call fcn.0042cd20
push eax
call fcn.0048d660
add esp, 0xc
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
je 0x451534
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.00451c20
jmp 0x4513fa
push 0
lea edx, [ebp - 0x104]
push edx
lea ecx, [ebp - 0xc8]
call fcn.00451d50
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00451c60
push eax
lea ecx, [ebp - 0xc8]
call fcn.00451de0
movzx ecx, al
test ecx, ecx
je 0x451506
lea ecx, [ebp - 0xc8]
call fcn.00451cf0
mov ecx, eax
call fcn.0048bea0
push eax
lea ecx, [ebp - 0xd4]
call fcn.00402f90
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd4]
call fcn.004180e0
cmp eax, 4
jle 0x45149e
push 4
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0xd4]
call fcn.0043b2a0
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
push 0x4d9f18
mov ecx, dword [ebp - 0x124]
call fcn.0041f030
test eax, eax
jne 0x45149e
mov dword [ebp - 0x128], 1
jmp 0x4514a8
mov dword [ebp - 0x128], 0
mov cl, byte [ebp - 0x128]
mov byte [ebp - 0x10d], cl
mov edx, dword [ebp - 0x118]
and edx, 1
je 0x4514d1
and dword [ebp - 0x118], 0xfffffffe
lea ecx, [ebp - 0x114]
call fcn.00418010
movzx eax, byte [ebp - 0x10d]
test eax, eax
je 0x4514f2
push 0
lea ecx, [ebp - 0xd4]
call fcn.0042cd20
push eax
call fcn.0048cd60
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd4]
call fcn.00418010
jmp 0x4513e6
mov ecx, dword [ebp - 0x64]
push ecx
push 0x4d9f24
mov ebx, 0x4f8948
call fcn.0048a860
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.0042cd20
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp esi, esp
call fcn.004c3b36
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb4]
call fcn.00451bf0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00418010
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00418010
jmp 0x451289
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00451bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406930
push edx
mov ecx, ebp
push eax
lea edx, [0x4515b8]
call fcn.004c3b59
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1873
add esp, 0x128
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret