Function at 0x40d160
Capabilities:
Delete directory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x5335a7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
push ecx
lea ecx, [ebp + 0x40]
movlpd qword [ebp - 0x18], xmm0
call fcn.004056c0
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp + 0x40]
call fcn.00412110
lea ecx, [ebp]
call fcn.0041e9b0
mov byte [ebp - 4], 1
push 4
mov dword [ebp + 0x70], 0
call fcn.00509b07
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp + 0x70], eax
mov byte [ebp - 4], 3
lea edx, [ebp + 0x40]
push 0x565bac
lea ecx, [ebp + 0x58]
call fcn.00404970
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x70]
call fcn.0041ed90
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x58]
call fcn.00404600
mov esi, dword [ebp + 0x70]
test bl, bl
je 0x40d3da
lea ecx, [ebp]
call fcn.0041ea90
test al, al
jne 0x40d2b0
mov eax, dword [ebp + 0x20]
and eax, 0x10
or eax, 0
je 0x40d245
mov al, 1
jmp 0x40d247
xor al, al
test al, al
lea edx, [ebp + 0x40]
lea eax, [ebp + 0x28]
lea ecx, [ebp + 0x58]
push eax
je 0x40d280
call fcn.0040aa90
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.0040d160
mov ebx, eax
mov edi, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x58]
call fcn.00404600
jmp 0x40d2bc
call fcn.0040aa90
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x58]
call fcn.0041f480
movzx eax, al
cdq
mov ebx, eax
mov dword [ebp - 0x14], eax
mov edi, edx
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x58]
call fcn.00404600
jmp 0x40d2bc
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.0041eb00
test al, al
je 0x40d3e0
nop
mov edi, dword [ebp + 0x20]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x40d2e1
mov al, 1
jmp 0x40d2e3
xor al, al
test al, al
je 0x40d33c
lea ecx, [ebp + 0x28]
call fcn.004045b0
test al, al
jne 0x40d33c
lea ecx, [ebp + 0x28]
call fcn.00404680
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x40d305
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x40d33c
lea ecx, [ebp + 0x28]
call fcn.00404710
cmp eax, 1
je 0x40d3bf
cmp dword [ebx + 0x14], 8
jb 0x40d324
mov ebx, dword [ebx]
cmp word [ebx + 2], 0x2e
jne 0x40d33c
lea ecx, [ebp + 0x28]
call fcn.00404710
cmp eax, 2
je 0x40d3bf
or edi, 0
je 0x40d345
mov al, 1
jmp 0x40d347
xor al, al
test al, al
lea edx, [ebp + 0x40]
lea eax, [ebp + 0x28]
push eax
je 0x40d386
lea ecx, [ebp - 0x30]
call fcn.0040aa90
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.0040d160
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
add ebx, eax
mov dword [ebp - 0x14], ebx
adc edi, edx
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00404600
jmp 0x40d3c5
lea ecx, [ebp + 0x58]
call fcn.0040aa90
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x58]
call fcn.0041f480
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
movzx eax, al
cdq
add ebx, eax
mov dword [ebp - 0x14], ebx
adc edi, edx
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x58]
call fcn.00404600
jmp 0x40d3c5
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.0041eb00
test al, al
jne 0x40d2d0
jmp 0x40d3e0
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40d3f8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40d3f8
mov dword [esi], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.004045c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40d4cd
lea ecx, [ebp + 0x58]
call fcn.00404660
mov byte [ebp - 4], 9
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0x40]
call fcn.0041f9d0
test al, al
je 0x40d441
lea ecx, [ebp + 0x58]
call fcn.004045c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40d4c1
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x58]
call fcn.00404600
lea ecx, [ebp + 0x40]
call fcn.0041f2d0
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40d4d3
xor edx, edx
lea ecx, [ebp + 0x40]
call fcn.0041f210
lea ecx, [ebp + 0x40]
call fcn.004045c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40d4cd
lea ecx, [ebp + 0x58]
call fcn.00404660
mov byte [ebp - 4], 0xa
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0x40]
call fcn.0041f9d0
test al, al
je 0x40d4a8
lea ecx, [ebp + 0x58]
call fcn.004045c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40d4c1
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x58]
call fcn.00404600
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x40]
call fcn.0041f210
jmp 0x40d4d3
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x58]
call fcn.00404600
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40d4ef
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40d4ef
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.00509dd1
add esp, 8
mov dword [ebp + 0x70], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.00404600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00404600
mov eax, ebx
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00509af6
lea esp, [ebp + 0x78]
pop ebp
ret