Function at 0x403fd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4116bb
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0x4ac
xor ebx, ebx
lea eax, [ebp - 0x4bc]
push ebx
push eax
call fcn.00407330
push 1
push 0xa
mov dword [ebp - 0x18], ebx
call fcn.00408f80
add eax, 8
mov dword [ebp - 0x4bc], ebx
add esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
push 1
push 0xa
cmp dword [eax - 8], 1
jg 0x404085
call fcn.00408f80
add eax, 8
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 0x4c4], eax
add esp, 8
mov eax, dword [ebp + 8]
push dword [eax - 8]
call fcn.004024a0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x4c4]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push esi
call fcn.004074d0
add esp, 0xc
jmp 0x4040f7
call fcn.00408f80
add esp, 8
lea ecx, [ebp - 0x4c0]
add eax, 8
mov dword [ebp - 0x4c0], eax
push 1
call fcn.004024a0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x4c0]
push 1
push 0xa
mov ecx, dword [eax - 8]
mov ax, word [eax + ecx*2 - 2]
mov word [esi], ax
call fcn.00408f80
add esp, 8
lea edi, [esi - 8]
add eax, 8
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 0x4c4], eax
push dword [edi]
call fcn.004024a0
mov eax, dword [edi]
add eax, eax
push eax
push esi
mov esi, dword [ebp - 0x4c4]
push esi
call fcn.004074d0
push edi
call fcn.00409211
add esp, 0x10
mov ecx, 0x41860c
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404126
test dx, dx
je 0x404122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404126
add eax, 4
add ecx, 4
test dx, dx
jne 0x404100
xor edi, edi
jmp 0x40412b
sbb edi, edi
or edi, 1
test esi, esi
je 0x40413b
add esi, 0xfffffff8
push esi
call fcn.00409211
add esp, 4
test edi, edi
je 0x40414c
push 0x41860c
lea ecx, [ebp + 8]
call fcn.00402720
push 1
push 0xa
call fcn.00408f80
add eax, 8
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x4c0], eax
add esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 3
push eax
call fcn.004024a0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x4c0]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push esi
call fcn.004074d0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
lea ecx, [esi + eax*2]
mov eax, dword [0x418610]
mov dword [ecx], eax
mov ax, word [0x418614]
mov word [ecx + 4], ax
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4bc]
push esi
call fcn.00402410
test eax, eax
je 0x404444
lea eax, [ebp - 0x268]
mov ecx, 0x94
lea esi, [ebp - 0x268]
lea edi, [ebp - 0x4b8]
push eax
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x4bc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [ebp - 0x48c], 0x2e
mov dword [ebp - 0x4c4], eax
je 0x404436
test byte [ebp - 0x4b8], 0x10
je 0x40436a
push ecx
mov esi, esp
push 1
push 0xa
mov dword [esi], 0
call fcn.00408f80
add eax, 8
add esp, 8
mov dword [esi], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
push dword [eax - 8]
call fcn.004024a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push dword [esi]
call fcn.004074d0
add esp, 8
mov edi, esp
push 1
push 0xa
mov dword [edi], 0
call fcn.00408f80
add esp, 8
lea esi, [ebp - 0x48c]
add eax, 8
lea ecx, [esi + 2]
mov dword [edi], eax
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404265
mov eax, dword [ebp - 0x18]
sub esi, ecx
sar esi, 1
mov ecx, edi
mov eax, dword [eax - 8]
add eax, esi
push eax
call fcn.004024a0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push dword [edi]
call fcn.004074d0
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x48c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 8]
mov eax, dword [edi]
lea eax, [eax + ecx*2]
push eax
call fcn.004074d0
add esp, 0x18
call fcn.00403fd0
add esp, 8
mov dword [ebp - 0x4c8], eax
test eax, eax
jne 0x404363
push 1
push 0xa
call fcn.00408f80
add esp, 8
lea edi, [ebp - 0x48c]
add eax, 8
lea ecx, [edi + 2]
mov dword [ebp - 0x4cc], eax
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4042f0
mov eax, dword [ebp - 0x18]
sub edi, ecx
sar edi, 1
lea ecx, [ebp - 0x4cc]
mov eax, dword [eax - 8]
add eax, edi
push eax
call fcn.004024a0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x4cc]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push esi
call fcn.004074d0
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x48c]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 8]
lea eax, [esi + eax*2]
push eax
call fcn.004074d0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test esi, esi
je 0x40435d
add esi, 0xfffffff8
push esi
call fcn.00409211
add esp, 4
mov eax, dword [ebp - 0x4c8]
add ebx, eax
jmp 0x404430
push 1
push 0xa
call fcn.00408f80
add esp, 8
lea edi, [ebp - 0x48c]
add eax, 8
lea ecx, [edi + 2]
mov dword [ebp - 0x4c8], eax
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x404390
mov eax, dword [ebp - 0x18]
sub edi, ecx
sar edi, 1
lea ecx, [ebp - 0x4c8]
mov eax, dword [eax - 8]
add eax, edi
push eax
call fcn.004024a0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x4c8]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ecx
push esi
call fcn.004074d0
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x48c]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 8]
lea eax, [esi + eax*2]
push eax
call fcn.004074d0
mov eax, dword [ebp + 0xc]
add esp, 0x18
mov ecx, esi
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x404416
test dx, dx
je 0x404412
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x404416
add ecx, 4
add eax, 4
test dx, dx
jne 0x4043f0
xor edi, edi
jmp 0x40441b
sbb edi, edi
or edi, 1
test esi, esi
je 0x40442b
add esi, 0xfffffff8
push esi
call fcn.00409211
add esp, 4
test edi, edi
je 0x404430
inc ebx
mov eax, dword [ebp - 0x4c4]
test eax, eax
jne 0x4041c1
mov esi, dword [ebp - 0x4c0]
mov eax, dword [ebp - 0x4bc]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40445f
push eax
call edi
xor eax, eax
mov dword [ebp - 0x4bc], eax
test esi, esi
je 0x404475
add esi, 0xfffffff8
push esi
call fcn.00409211
mov eax, dword [ebp - 0x4bc]
add esp, 4
test eax, eax
je 0x40447c
push eax
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40448f
add eax, 0xfffffff8
push eax
call fcn.00409211
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x4044a2
add eax, 0xfffffff8
push eax
call fcn.00409211
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4044b5
add ecx, 0xfffffff8
push ecx
call fcn.00409211
add esp, 4
mov eax, ebx
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.00405d07
mov esp, ebp
pop ebp
ret