Function at 0x437220
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x473fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0x14]
call fcn.00404830
push str._:____
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.00404830
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
xor esi, esi
cmp eax, edi
mov byte [esp + 0x24], 1
jle 0x4372ab
jmp 0x437280
cmp esi, edi
jl 0x4372b3
cmp esi, eax
jg 0x4372b3
mov al, byte [esi + ecx]
mov byte [esp + 0x18], al
mov ecx, dword [esp + 0x18]
push 0x5f
push ecx
lea ecx, [esp + 0x18]
call fcn.004369e0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
inc esi
cmp esi, eax
jl 0x437280
mov eax, dword [ebp]
cmp dword [eax - 0xc], edi
jge 0x4372bd
push 0x80070057
call fcn.00401210
mov al, byte [eax]
cmp al, 0x2e
push ebx
je 0x4372fb
push 1
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.0040b5e0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x18], 1
jne 0x4372f7
cmp ecx, edi
jge 0x4372f2
push 0x80070057
call fcn.00401210
cmp byte [eax], 0x2e
je 0x4372fb
xor bl, bl
jmp 0x4372fd
mov bl, 1
mov al, byte [esp + 0x18]
or edi, 0xffffffff
test al, 1
je 0x437325
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437325
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x437381
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43734b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x43736a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov esi, dword [ebp]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4373aa
cmp eax, dword [esi]
jne 0x4373aa
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4373e0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x4373bf
call fcn.00406710
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
cmp dword [esi - 4], 1
mov byte [esp + 0x28], 2
jle 0x437403
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402f20
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test esi, esi
jne 0x437412
xor eax, eax
jmp 0x437426
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437417
sub eax, edx
js 0x4372e8
cmp eax, dword [esi - 8]
jg 0x4372e8
mov dword [esi - 0xc], eax
mov ecx, ebp
mov byte [eax + esi], 0
call fcn.00436ff0
test eax, eax
jne 0x4374cd
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x437454
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437472
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437494
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4374b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
cmp eax, 0x50
je 0x437454
cmp eax, 0xb7
je 0x437454
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437329
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x437329