Function at 0x489200
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537320
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x588088]
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
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x44]
movlpd qword [ebp - 0x98], xmm0
call fcn.00404520
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push 0x10
push eax
call fcn.00489eb0
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.004a21c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 4
call fcn.0042d170
push 4
call fcn.004e1a35
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
push 0x55e4cc
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00412f50
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004a2bb0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402a60
test bl, bl
je 0x4894a4
lea ecx, [ebp - 0x88]
call fcn.004a22b0
test al, al
jne 0x489363
mov eax, dword [ebp - 0x68]
and eax, 0x10
or eax, 0
je 0x4892f8
mov al, 1
jmp 0x4892fa
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
je 0x489333
call fcn.00435900
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.00489200
mov esi, edx
mov ebx, eax
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402a60
jmp 0x489375
call fcn.00435900
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.004ab5f0
movzx eax, al
cdq
mov ebx, eax
mov dword [ebp - 0x8c], edx
mov esi, edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402a60
jmp 0x489375
mov esi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x88]
push eax
call fcn.004a2950
test al, al
je 0x4894b0
nop dword [eax]
mov esi, dword [ebp - 0x68]
and esi, 0x10
mov eax, esi
or eax, 0
je 0x4893a1
mov al, 1
jmp 0x4893a3
xor al, al
test al, al
je 0x4893fc
lea ecx, [ebp - 0x60]
call fcn.00404470
test al, al
jne 0x4893fc
lea ecx, [ebp - 0x60]
call fcn.00402ae0
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x4893c5
mov eax, dword [edi]
cmp word [eax], 0x2e
jne 0x4893fc
lea ecx, [ebp - 0x60]
call fcn.00404600
cmp eax, 1
je 0x489485
cmp dword [edi + 0x14], 8
jb 0x4893e4
mov edi, dword [edi]
cmp word [edi + 2], 0x2e
jne 0x4893fc
lea ecx, [ebp - 0x60]
call fcn.00404600
cmp eax, 2
je 0x489485
or esi, 0
je 0x489405
mov al, 1
jmp 0x489407
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
je 0x48944c
lea ecx, [ebp - 0xb0]
call fcn.00435900
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.00489200
mov esi, dword [ebp - 0x8c]
add ebx, eax
adc esi, edx
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.00402a60
jmp 0x48948b
lea ecx, [ebp - 0x2c]
call fcn.00435900
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.004ab5f0
mov esi, dword [ebp - 0x8c]
movzx eax, al
cdq
add ebx, eax
adc esi, edx
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402a60
jmp 0x48948b
mov esi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x88]
push eax
call fcn.004a2950
test al, al
jne 0x489390
jmp 0x4894b0
mov esi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4894cb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4894cb
mov dword [edi], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403390
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call edi
test eax, eax
jne 0x489598
lea ecx, [ebp - 0x2c]
call fcn.00402ac0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004aba40
test al, al
je 0x48950e
lea ecx, [ebp - 0x2c]
call fcn.00403390
push eax
call edi
test eax, eax
jne 0x48958c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402a60
lea ecx, [ebp - 0x44]
call fcn.004ab440
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
je 0x48959e
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.004ab380
lea ecx, [ebp - 0x44]
call fcn.00403390
push eax
call edi
test eax, eax
jne 0x489598
lea ecx, [ebp - 0x2c]
call fcn.00402ac0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004aba40
test al, al
je 0x489570
lea ecx, [ebp - 0x2c]
call fcn.00403390
push eax
call edi
test eax, eax
jne 0x48958c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402a60
mov edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x44]
call fcn.004ab380
jmp 0x48959e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402a60
add ebx, 1
adc esi, 0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4895cc
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4895c1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4895c1
mov dword [edi], 0xffffffff
push 4
push edi
call fcn.004e1a65
add esp, 8
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00402a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402a60
mov eax, ebx
mov edx, esi
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.004e1a24
mov esp, ebp
pop ebp
ret