Function at 0x466e50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d34bd
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x659bc0]
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 dword [ebp - 0x10], esp
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x64], 0
call fcn.00460d20
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
push ecx
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00471940
add esp, 4
test eax, eax
jne 0x46716b
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x466ec8
lock inc dword [ebx + 4]
mov esi, dword [ebp - 0x6c]
mov edi, ebx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
test ebx, ebx
je 0x466edb
lock inc dword [ebx + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test ebx, ebx
je 0x466f18
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x466f18
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [ebx + 8], eax
jne 0x466f18
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 5
nop dword [eax]
test esi, esi
je 0x4670c5
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.00460800
cmp dword [eax], 2
jne 0x4670b2
lea eax, [ebp - 0x44]
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.0045f9d0
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.00471720
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x18]
or esi, 8
cmp dword [ebp - 0x1c], 0xe
mov dword [ebp - 0x64], esi
sete byte [ebp - 0x5d]
cmp ecx, 0xf
jbe 0x466f9e
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x466f94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466fe0
push ecx
push edx
call fcn.005ce06a
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 7
jbe 0x466ff0
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x466fe6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466fe6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.005ce06a
add esp, 8
cmp byte [ebp - 0x5d], 0
je 0x4670b2
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0045f9d0
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.00471720
or esi, 0x400
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
mov dword [ebp - 0x64], esi
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x467060
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x467056
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4670a2
push ecx
push edx
call fcn.005ce06a
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 7
jbe 0x4670b2
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4670a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4670a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.005ce06a
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.00460bd0
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
jmp 0x466f20
or esi, 0xffffffff
test edi, edi
je 0x4670eb
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4670eb
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x4670eb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test ebx, ebx
je 0x46710d
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x46710d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x46710d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x46714f
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x467145
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x467145
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, 0x46710d
ret
push ecx
push edx
call fcn.005ce06a
add esp, 8
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.005cdcb6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x5c]
mov edx, eax
push ecx
mov ecx, str.directory_iterator::directory_iterator
call fcn.00460530
int3