Function at 0x407fd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52aa4e
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x585184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
push eax
movlpd qword [ebp - 0xb4], xmm0
call fcn.00405950
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push 0x10
push eax
call fcn.00406eb0
add esp, 8
lea ecx, [ebp - 0x9c]
call fcn.00421a50
mov byte [ebp - 4], 1
push 4
mov dword [ebp - 0xac], 0
call fcn.00502357
add esp, 4
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
push 0x55b648
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004094d0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9c]
push ecx
push eax
lea ecx, [ebp - 0xac]
call fcn.00421e60
mov bl, al
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4080e7
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4080dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408768
push edx
push ecx
call fcn.00502621
add esp, 8
mov esi, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
test bl, bl
je 0x4084ac
mov ecx, dword [ebp - 0x7c]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x40811a
mov al, 1
jmp 0x40811c
xor al, al
test al, al
je 0x408173
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x408173
mov edi, dword [ebp - 0x60]
lea eax, [ebp - 0x74]
mov ebx, dword [ebp - 0x74]
cmp edi, 8
cmovae eax, ebx
cmp word [eax], 0x2e
jne 0x408173
cmp edx, 1
je 0x408156
cmp edi, 8
lea eax, [ebp - 0x74]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x408173
cmp edx, 2
jne 0x408173
mov ebx, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa0], edi
jmp 0x40822d
or ecx, 0
je 0x40817c
mov al, 1
jmp 0x40817e
xor al, al
test al, al
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
je 0x4081e9
call fcn.004074d0
add esp, 0xc
mov byte [ebp - 4], 5
push eax
call fcn.00407fd0
mov edi, eax
mov ebx, edx
add esp, 4
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40821d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408213
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40876d
jmp 0x408213
call fcn.004074d0
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x44]
call fcn.00423310
movzx eax, al
cdq
mov edi, eax
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa0], edi
mov ebx, edx
jmp 0x4081b3
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
call fcn.00421b50
test al, al
je 0x4084b8
mov ecx, dword [ebp - 0x7c]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x408254
mov al, 1
jmp 0x408256
xor al, al
test al, al
je 0x408298
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x408298
mov edi, dword [ebp - 0x60]
lea eax, [ebp - 0x74]
mov ebx, dword [ebp - 0x74]
cmp edi, 8
cmovae eax, ebx
cmp word [eax], 0x2e
jne 0x408298
cmp edx, 1
je 0x408488
cmp edi, 8
lea eax, [ebp - 0x74]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x408298
cmp edx, 2
je 0x408488
or ecx, 0
je 0x4082a1
mov al, 1
jmp 0x4082a3
xor al, al
test al, al
je 0x40839b
mov byte [ebp - 4], 7
xor eax, eax
or dword [ebp - 0xa4], 1
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
call fcn.00407740
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00407830
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00407830
lea eax, [ebp - 0x2c]
push eax
call fcn.00407fd0
mov edi, dword [ebp - 0xa0]
add esp, 4
mov ebx, dword [ebp - 0xa8]
add edi, eax
mov dword [ebp - 0xa0], edi
adc ebx, edx
and dword [ebp - 0xa4], 0xfffffffe
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x408382
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408378
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408768
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x408494
mov byte [ebp - 4], 8
xor eax, eax
or dword [ebp - 0xa4], 2
lea ecx, [ebp - 0x44]
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
call fcn.00407740
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00407830
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x44]
push eax
call fcn.00407830
lea ecx, [ebp - 0x44]
call fcn.00423310
mov edi, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0xa8]
movzx eax, al
cdq
add edi, eax
mov dword [ebp - 0xa0], edi
adc ebx, edx
and dword [ebp - 0xa4], 0xfffffffd
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x408472
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408468
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408768
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x408494
mov edi, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0xa8]
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
call fcn.00421b50
test al, al
jne 0x408243
jmp 0x4084b8
mov ebx, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xb4]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4084d0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4084d0
mov dword [esi], 0xffffffff
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408581
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00423c40
test al, al
je 0x408639
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408639
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40856d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408563
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40876d
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
add edi, 1
adc ebx, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4085a3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4085a3
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.00502621
add esp, 8
mov dword [ebp - 0xac], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004043c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x408605
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4085fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40876d
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov edx, ebx
mov dword [ebp - 0x48], 7
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00502346
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x408677
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40866d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40876d
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00422ae0
mov dword [ebp - 0xa0], eax
cmp eax, 0xffffffff
je 0x408587
xor edx, edx
lea ecx, [ebp - 0x5c]
call fcn.004229c0
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408581
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00423c40
test al, al
je 0x408707
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40852f
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x408741
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408737
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40876d
push edx
push ecx
call fcn.00502621
add esp, 8
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004229c0
jmp 0x408587
call fcn.00506759
call fcn.00506759
int3