Function at 0x43e610
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f440
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5e91b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x34]
call fcn.00478129
mov dword [ebp - 4], 0
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43e664
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43e691
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov bl, 2
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
push 0x5bc360
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00404ad0
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401fb0
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e6e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5bc590
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00404ad0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.004781cd
mov esi, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e733
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x43e7bd
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x34]
call fcn.00477e45
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.004780ee
test eax, eax
jne 0x43e7b9
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004783c4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x34]
call eax
cmp eax, 1
jne 0x43e78d
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0043e610
mov edx, dword [ebp + 8]
push edx
call edi
jmp 0x43e797
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e7b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x43e741
lea ecx, [ebp - 0x34]
call fcn.00477d5f
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e7e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e80b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00478158
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4