Function at 0x46dbd6
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4f45d2
call fcn.004ebd20
sub esp, 0x20
push esi
xor esi, esi
cmp dword [0x522c14], esi
je 0x46dbfa
cmp dword [0x522b68], esi
jne 0x46de53
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x522418]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp ecx, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
jle 0x46de53
push ebx
push edi
jmp 0x46dc1f
xor esi, esi
cmp eax, dword [0x522418]
jae 0x46de60
mov ecx, dword [0x522414]
lea eax, [ecx + eax*4]
mov edi, dword [eax]
cmp edi, esi
mov dword [ebp - 0x20], edi
je 0x46dc47
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp edi, esi
mov dword [ebp - 4], esi
je 0x46dde4
cmp dword [edi + 0x2c], esi
je 0x46dde4
mov edx, dword [edi + 0x24]
cmp edx, esi
je 0x46ddde
mov ecx, dword [edi + 0x28]
cmp ecx, esi
mov eax, dword [ebp - 0x18]
jne 0x46dc78
mov dword [edi + 0x28], eax
jmp 0x46ddde
sub eax, ecx
cmp eax, 0x7530
jae 0x46dc8a
cmp edx, 5
jb 0x46ddde
lea eax, [ebp - 0x10]
mov ecx, edi
call fcn.0045e785
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], esi
jne 0x46dd42
push 0x523254
lea edi, [ebp - 0x1c]
call fcn.00403098
push 0x4fdd60
mov eax, edi
push eax
call fcn.00403184
mov ebx, dword [ebp - 0x1c]
push esi
call fcn.0045e51b
pop ecx
mov edi, 0x3e7
mov eax, dword [0x51b438]
push edi
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push str._s_03d.ttbl
push eax
call fcn.00405b51
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov eax, esi
call fcn.00403fa2
test eax, eax
je 0x46dd12
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x46dd07
push eax
call fcn.004013b2
dec edi
cmp edi, 0x384
jg 0x46dccd
jmp 0x46dd2e
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0040311c
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x46dd2e
push eax
call fcn.004013b2
lea eax, [ebx - 0xc]
cmp eax, dword [0x51b43c]
je 0x46dd3f
push eax
call fcn.004013b2
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x46de05
push 0x4feb98
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004032df
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2c]
push 1
push esi
push edi
call fcn.00462320
test eax, eax
jne 0x46dd99
push esi
mov dword [edi + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x46dd91
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
jmp 0x46ddd0
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
lea eax, [edi + 0x18]
call fcn.0040315f
and dword [edi + 0x24], 0
and dword [edi + 0x28], 0
add esi, 0xfffffff4
cmp esi, dword [0x51b43c]
je 0x46ddcd
push esi
call fcn.004013b2
lea eax, [ebx - 0xc]
cmp eax, dword [0x51b43c]
je 0x46ddde
push eax
call fcn.004013b2
or dword [ebp - 4], 0xffffffff
jmp 0x46ddec
or dword [ebp - 4], 0xffffffff
cmp edi, esi
je 0x46ddf3
mov esi, edi
call fcn.0043f167
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
jl 0x46dc1d
jmp 0x46de51
cmp ebx, dword [0x522418]
jae 0x46de60
mov eax, dword [0x522414]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x46de30
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
call fcn.0043f167
inc ebx
cmp ebx, dword [ebp - 0x28]
jl 0x46de05
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x46de4a
push eax
call fcn.004013b2
mov esi, edi
call fcn.0043f167
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
push 0x80070057
call fcn.004010d2
int3