Function at 0x406060
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42751d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x441018]
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
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00407330
add esp, 4
test eax, eax
jne 0x4062eb
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x4060f0
lock inc dword [edi + 4]
mov esi, dword [ebp - 0x34]
mov ebx, edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
test edi, edi
je 0x406103
lock inc dword [edi + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
test edi, edi
je 0x40613e
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x40613e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x40613e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 6
test esi, esi
je 0x4061e5
nop word [eax + eax]
mov ecx, esi
lea ebx, [esi + 0x20]
call fcn.004045e0
test al, al
jne 0x4061b9
push ebx
lea ecx, [ebp - 0x28]
call fcn.00406cc0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4061cf
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4061ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062fb
push ecx
push edx
call fcn.0040f504
add esp, 8
jmp 0x4061cf
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], ecx
push ebx
call fcn.00406cc0
call fcn.00406060
add esp, 0x18
lea ecx, [ebp - 0x3c]
call fcn.00404b80
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x406150
mov ebx, dword [ebp - 0x38]
or esi, 0xffffffff
test ebx, ebx
je 0x40620b
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x40620b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x40620b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 2
test edi, edi
je 0x406231
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x406231
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x406231
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406cc0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x406289
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40627f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062fb
push ecx
push edx
call fcn.0040f504
add esp, 8
lea ecx, [ebp - 0x50]
call fcn.00406bb0
lea ecx, [ebp - 0x5c]
call fcn.00406bb0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x4062cf
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4062c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406300
push ecx
push edx
call fcn.0040f504
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 - 0x10]
xor ecx, ebp
call fcn.0040f4f6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
mov edx, eax
push ecx
mov ecx, str.directory_iterator::directory_iterator
call fcn.00404400
call fcn.00414471
call fcn.00414471
int3