Function at 0x42f078
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42f300
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.ole32.dll_CoInitialize
mov eax, dword [0x449c64]
cmp byte [eax], 0
je 0x42f0ba
call fcn.0043daa8
lea eax, [ebp - 8]
push eax
mov eax, dword [0x449c48]
mov eax, dword [eax]
mov ecx, 0x42f318
mov edx, 0x42f324
call fcn.004259a8
lea eax, [ebp - 0xc]
push eax
mov eax, 0x42f334
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x42f374
call fcn.00407a2c
mov eax, dword [ebp - 0xc]
call fcn.004140dc
test al, al
jne 0x42f138
lea eax, [ebp - 0xc]
push eax
mov eax, 0x42f334
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x42f388
call fcn.00407a2c
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, 0x42f39c
mov eax, dword [ebp - 0xc]
call fcn.0041374c
mov dl, 1
mov eax, dword [0x40c6d4]
call fcn.00402c3c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x42f2d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1c]
call fcn.0042ff54
mov byte [ebp - 1], al
mov eax, dword [0x449c08]
cmp byte [eax], 0
je 0x42f187
call fcn.00403178
jmp 0x42f2d8
cmp byte [ebp - 1], 0
je 0x42f28a
mov eax, dword [0x449b44]
cmp byte [eax], 0
jne 0x42f28a
mov eax, dword [ebx + 0x18]
call fcn.00431c30
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x42f1ba
call fcn.00403178
jmp 0x42f2d8
mov eax, dword [0x449b44]
cmp byte [eax], 0
je 0x42f1ce
call fcn.00403178
jmp 0x42f2d8
mov eax, ebx
call fcn.0042edfc
mov eax, dword [0x449bb0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edx, 0x42f3b4
call fcn.00412f10
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x7c]
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
mov edx, 0x42f3c8
mov eax, dword [ebp - 0xc]
call fcn.0041374c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00417b08
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov ecx, 0x42f3e0
call fcn.00403904
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.004141c0
mov eax, dword [0x449bb0]
mov eax, dword [eax]
call fcn.00412b7c
mov eax, dword [0x449bb0]
mov eax, dword [eax]
call fcn.00417fb4
mov eax, dword [ebp - 0x10]
call fcn.00417fb4
mov eax, dword [ebp - 0x14]
call fcn.0042ef50
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x42f282
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00403a7c
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
dec ebx
cmp ebx, 0xffffffff
jne 0x42f261
mov eax, dword [0x449b44]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f2d8
mov eax, dword [ebp - 0x18]
call fcn.00402c64
mov eax, dword [0x449b44]
cmp byte [eax], 0
je 0x42f2ad
mov byte [ebp - 1], 0
mov eax, dword [0x449be8]
mov edx, dword [0x449bb8]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
xor edx, edx
xor eax, eax
call fcn.0043d998
call sub.ole32.dll_CoUninitialize
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f307
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00403660
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403660
ret