Function at 0x41b900
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x46c6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x34]
call fcn.00405970
mov ecx, dword [0x4800d8]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], ecx
mov ebx, 0x104
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.004042d0
test eax, eax
je 0x41b962
mov eax, dword [esp + 0x18]
mov dword [eax - 8], ebx
mov byte [eax + 0x104], 0
push ebx
push eax
call fcn.004494e0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00404410
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov dword [esi - 8], eax
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [eax + esi], 0
call fcn.00404b00
mov edx, dword [0x4800d8]
mov dword [esp + 0x14], edx
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.004042d0
test eax, eax
je 0x41b9bf
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebx
mov byte [eax + 0x104], 0
push ebx
push eax
call fcn.004493e0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00404410
mov esi, dword [esp + 0x14]
push esi
call edi
mov dword [esi - 8], eax
push 0x5c
lea ecx, [esp + 0x18]
mov byte [eax + esi], 0
call fcn.00404b00
mov eax, dword [0x4800d8]
mov dword [esp + 0x10], eax
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.004042d0
test eax, eax
je 0x41ba15
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebx
mov byte [eax + 0x104], 0
push ebx
push eax
call fcn.00449170
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00404410
mov esi, dword [esp + 0x10]
push esi
call edi
mov dword [esi - 8], eax
push 0x5c
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00404b00
mov ebp, dword [esp + 0x30]
push 0x5c
push ebp
call fcn.00457e22
add esp, 8
test eax, eax
je 0x41bbc0
sub eax, ebp
cmp eax, 2
jle 0x41bbc0
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x38]
call fcn.0040a900
mov ebx, eax
mov esi, dword [ebx]
cmp ebp, esi
mov byte [esp + 0x28], 4
je 0x41bb31
mov eax, dword [ebp - 0xc]
test eax, eax
mov ecx, dword [0x4800dc]
lea edi, [ebp - 0xc]
jge 0x41ba9a
lea edx, [ebp - 0xc]
cmp edx, ecx
jne 0x41baa1
mov edx, dword [esi - 0xc]
test edx, edx
jge 0x41bb06
cmp eax, 1
mov ebx, dword [esi - 8]
jg 0x41baae
cmp ebx, dword [ebp - 4]
jle 0x41bae4
add ebp, 0xfffffff4
cmp ebp, ecx
je 0x41bad2
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bac9
push edi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800d8]
mov dword [esp + 0x30], eax
push ebx
lea ecx, [esp + 0x34]
call fcn.004039b0
test eax, eax
mov ebp, dword [esp + 0x30]
je 0x41bb31
lea ecx, [ebx + 1]
cmp ecx, ebx
jb 0x41bafd
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], ebx
mov byte [ebx + ebp], 0
jmp 0x41bb31
add ebp, 0xfffffff4
cmp ebp, ecx
je 0x41bb21
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bb21
push edi
call fcn.00457c3f
add esp, 4
mov ebp, dword [ebx]
lea eax, [ebp - 0xc]
push eax
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x28], 3
je 0x41bb65
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bb65
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x41bbc0
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x41bbc0
mov edx, dword [esp + 0x10]
push edx
push ebp
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x41bbc0
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x41bbc0
push 0x5c
push ebp
call fcn.00457e22
add esp, 8
test eax, eax
je 0x41bbc0
sub eax, ebp
cmp eax, 2
jg 0x41ba63
mov esi, dword [esp + 0x10]
mov ecx, dword [0x4800dc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x41bbea
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x41bbea
push esi
call fcn.00457c3f
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [0x4800dc]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x41bc0d
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x41bc0d
push esi
call fcn.00457c3f
add esp, 4
mov esi, dword [esp + 0x18]
mov eax, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x41bc30
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x41bc30
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800dc]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x41bc50
add ebp, 0xfffffff4
push ebp
call edi
test eax, eax
jg 0x41bc50
push ebp
call fcn.00457c3f
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4