Function at 0x489987
Capabilities:
Delete file

Disassembly:
mov eax, 0x66fb7b
call fcn.006313fc
sub esp, 0x6c
cmp byte [0x75fda2], 0
je 0x4899a5
xor eax, eax
inc eax
jmp 0x489d2f
push ebx
push ebp
xor ebx, ebx
mov ebp, 0x7640c0
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
cmp byte [esp + 0x8c], bl
jne 0x4899e5
cmp byte [esp + 0x90], bl
jne 0x4899fe
mov eax, dword [0x762f24]
cmp eax, dword [0x76418c]
jg 0x4899ee
jl 0x4899f6
mov eax, dword [0x762f20]
cmp eax, dword [0x764188]
jae 0x4899ee
jmp 0x4899f6
cmp byte [esp + 0x90], bl
jne 0x4899fe
push ebx
push ebp
call esi
test eax, eax
je 0x4899fe
push 2
pop eax
jmp 0x489d2c
push edi
mov edi, ebx
jmp 0x489a17
cmp edi, 0x1f4
jge 0x489a1f
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc edi
push ebx
push ebp
call esi
test eax, eax
jne 0x489a03
mov bl, 1
mov byte [esp + 0x94], bl
call fcn.00475044
and dword [esp + 0x84], 0
lea eax, [esp + 0x34]
mov edi, str.resume.dat.temp
push edi
push eax
call fcn.0046e883
cmp dword [eax + 0x14], 8
mov byte [esp + 0x84], bl
jb 0x489a54
mov eax, dword [eax]
push 0x80
push 7
push eax
call fcn.0045eeaa
push 0
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov byte [esp + 0x8c], 0
call fcn.0042341c
cmp dword [esp + 0x10], 0xffffffff
jne 0x489a88
xor esi, esi
jmp 0x489d18
mov eax, dword [0x7641f4]
xor ebp, ebp
mov esi, dword [eax]
mov dword [esp + 0x14], esi
cmp esi, eax
je 0x489b53
push 0x14
call fcn.00630af1
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x84], 2
test eax, eax
je 0x489ac0
mov ecx, eax
call fcn.00424b8a
mov edi, eax
jmp 0x489ac2
xor edi, edi
push dword [esp + 0x90]
mov ecx, dword [esi + 0x24]
push edi
mov byte [esp + 0x8c], 0
call fcn.004af7ea
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.0045c6e3
cmp dword [esp + 0x48], 0x10
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x84], 3
jae 0x489afd
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x44]
sub eax, ebp
dec eax
push eax
lea eax, [ecx + ebp]
push eax
push dword [esp + 0x18]
call fcn.0045f311
xor ebp, ebp
inc ebp
test edi, edi
je 0x489b20
mov eax, dword [edi]
mov ecx, edi
push ebp
call dword [eax]
push 0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c], 0
call fcn.0040a0e9
lea ecx, [esp + 0x14]
call fcn.0045d8b6
mov esi, dword [esp + 0x14]
cmp esi, dword [0x7641f4]
jne 0x489a9d
mov edi, str.resume.dat.temp
push 0x14
call fcn.00630af1
pop ecx
mov dword [esp + 0x90], eax
mov byte [esp + 0x84], 4
test eax, eax
je 0x489b79
mov ecx, eax
call fcn.00424b8a
mov esi, eax
jmp 0x489b7b
xor esi, esi
push esi
mov byte [esp + 0x88], 0
call fcn.004fb460
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.0045c6e3
cmp dword [esp + 0x60], 0x10
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x84], 5
jae 0x489bac
lea ecx, [esp + 0x4c]
mov eax, dword [esp + 0x5c]
sub eax, ebp
push eax
lea eax, [ecx + ebp]
push eax
push dword [esp + 0x18]
call fcn.0045f311
test esi, esi
je 0x489bcc
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.0045ee3a
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0046e883
cmp dword [eax + 0x14], 8
mov byte [esp + 0x84], 6
jb 0x489bf1
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00460a7d
push 0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c], 5
mov esi, eax
call fcn.0042341c
test esi, esi
je 0x489d0b
lea ecx, [esp + 0x20]
call fcn.00424b8a
push str.resume.dat
lea eax, [esp + 0x68]
mov byte [esp + 0x88], 7
push eax
call fcn.0046e883
cmp dword [eax + 0x14], 8
mov byte [esp + 0x84], 8
jb 0x489c4d
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push 0x45b281
push dword [esp + 0x20]
push esi
push eax
call fcn.00469a1c
push 0
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x8c], 7
mov bh, al
call fcn.0042341c
push 1
push esi
call fcn.0045d916
push edi
lea eax, [esp + 0x68]
push eax
call fcn.0046e883
cmp dword [eax + 0x14], 8
jb 0x489c94
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.0042341c
mov ecx, dword [0x762f20]
mov eax, dword [0x762f24]
add ecx, 0x258
mov dword [0x764188], ecx
adc eax, 0
xor bl, bl
mov dword [0x76418c], eax
mov byte [esp + 0x94], bl
call fcn.00475085
xor eax, eax
mov dword [esp + 0x20], 0x689888
test bh, bh
setne al
mov dword [esp + 0x90], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 9
call fcn.0045b86a
mov esi, dword [esp + 0x90]
mov dword [esp + 0x20], 0x68987c
push 0
push 1
lea ecx, [esp + 0x54]
call fcn.0040a0e9
or dword [esp + 0x84], 0xffffffff
pop edi
test bl, bl
je 0x489d2a
call fcn.00475085
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
leave
ret 8