Function at 0x46d70e
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4f3618
call fcn.004eadec
sub esp, 0x20
push esi
xor esi, esi
cmp dword [0x521c14], esi
je 0x46d732
cmp dword [0x521b68], esi
jne 0x46d98b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x521418]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp ecx, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
jle 0x46d98b
push ebx
push edi
jmp 0x46d757
xor esi, esi
cmp eax, dword [0x521418]
jae 0x46d998
mov ecx, dword [0x521414]
lea eax, [ecx + eax*4]
mov edi, dword [eax]
cmp edi, esi
mov dword [ebp - 0x20], edi
je 0x46d77f
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp edi, esi
mov dword [ebp - 4], esi
je 0x46d91c
cmp dword [edi + 0x2c], esi
je 0x46d91c
mov edx, dword [edi + 0x24]
cmp edx, esi
je 0x46d916
mov ecx, dword [edi + 0x28]
cmp ecx, esi
mov eax, dword [ebp - 0x18]
jne 0x46d7b0
mov dword [edi + 0x28], eax
jmp 0x46d916
sub eax, ecx
cmp eax, 0x7530
jae 0x46d7c2
cmp edx, 5
jb 0x46d916
lea eax, [ebp - 0x10]
mov ecx, edi
call fcn.0045e702
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], esi
jne 0x46d87a
push 0x522254
lea edi, [ebp - 0x1c]
call fcn.004031b3
push 0x4fcd68
mov eax, edi
push eax
call fcn.0040328b
mov ebx, dword [ebp - 0x1c]
push esi
call fcn.004217ba
pop ecx
mov edi, 0x3e7
mov eax, dword [0x51a438]
push edi
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push str._s_03d.ttbl
push eax
call fcn.004060d6
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov eax, esi
call fcn.0040408d
test eax, eax
je 0x46d84a
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x46d83f
push eax
call fcn.004013aa
dec edi
cmp edi, 0x384
jg 0x46d805
jmp 0x46d866
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00403223
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x46d866
push eax
call fcn.004013aa
lea eax, [ebx - 0xc]
cmp eax, dword [0x51a43c]
je 0x46d877
push eax
call fcn.004013aa
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x46d93d
push 0x4fdb78
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004033e6
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2c]
push 1
push esi
push edi
call fcn.00462310
test eax, eax
jne 0x46d8d1
push esi
mov dword [edi + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x46d8c9
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
jmp 0x46d908
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.00403266
and dword [edi + 0x24], 0
and dword [edi + 0x28], 0
add esi, 0xfffffff4
cmp esi, dword [0x51a43c]
je 0x46d905
push esi
call fcn.004013aa
lea eax, [ebx - 0xc]
cmp eax, dword [0x51a43c]
je 0x46d916
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
jmp 0x46d924
or dword [ebp - 4], 0xffffffff
cmp edi, esi
je 0x46d92b
mov esi, edi
call fcn.0043f5c1
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
jl 0x46d755
jmp 0x46d989
cmp ebx, dword [0x521418]
jae 0x46d998
mov eax, dword [0x521414]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x46d968
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.0043f5c1
inc ebx
cmp ebx, dword [ebp - 0x28]
jl 0x46d93d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x46d982
push eax
call fcn.004013aa
mov esi, edi
call fcn.0043f5c1
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
push 0x80070057
call fcn.004010ca
int3