Function at 0x470d90
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66bde0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x718924]
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 edi, ecx
mov dword [ebp - 0x60], 0
lea eax, [edi + 0x69c]
xor edx, edx
xchg dword [eax], edx
mov eax, dword [edi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x470de6
push eax
call esi
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [edi + 0x67c]
test eax, eax
je 0x470dfd
push eax
call esi
mov dword [edi + 0x67c], 0
mov eax, dword [edi + 0x680]
test eax, eax
je 0x470e14
push eax
call esi
mov dword [edi + 0x680], 0
xor eax, eax
mov dword [ebp - 0x30], 0
lea ebx, [edi + 0x21c]
mov dword [ebp - 0x2c], 7
push ebx
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
call fcn.00472510
push 4
push str..dt_
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0044e7a0
xor eax, eax
mov dword [ebp - 0x18], 0
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00472510
push 5
push str..cfg_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0044e7a0
mov ebx, dword [ebp + 8]
cmp ebx, 9
jne 0x470fb6
cmp word [edi + 0x62c], 0
lea esi, [edi + 0x62c]
je 0x470ed2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0048ede0
add esp, 8
mov dword [ebp - 0x60], 1
cmp dword [eax + 0x14], 8
jb 0x470ec0
mov eax, dword [eax]
push esi
push eax
call fcn.004e70a0
add esp, 8
mov byte [ebp - 0x59], 1
test eax, eax
jne 0x470ed6
mov byte [ebp - 0x59], 0
test byte [ebp - 0x60], 1
je 0x470ee4
lea ecx, [ebp - 0x58]
call fcn.00448fb0
cmp byte [ebp - 0x59], 0
je 0x470f16
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
mov ebx, 0xa
jmp 0x470fff
push 0
lea ecx, [ebp - 0x68]
call fcn.004b46e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2c], 8
lea ecx, [edi + 0x21c]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x720a58]
mov ecx, 1
fild dword [edi + 0x670]
cmove eax, ecx
mov ecx, dword [edi + 0x670]
test ecx, ecx
jns 0x470f75
fadd dword [0x67d050]
fstp dword [ebp - 0x60]
fld dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
test eax, eax
jns 0x470f8b
fadd dword [0x67d050]
fstp dword [ebp - 0x60]
fdiv dword [ebp - 0x60]
lea ecx, [ebp - 0x68]
fnstcw word [ebp - 0x5a]
movzx eax, word [ebp - 0x5a]
or eax, 0xc00
mov dword [ebp - 0x60], eax
fldcw word [ebp - 0x60]
fistp qword [ebp - 0x64]
mov esi, dword [ebp - 0x64]
fldcw word [ebp - 0x5a]
call fcn.004b4780
jmp 0x471001
test ebx, ebx
je 0x47100c
cmp dword [edi + 0x674], 0x400
jb 0x470fdd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00471b20
test eax, eax
jne 0x470fff
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x47100c
push esi
push ebx
call eax
push dword [edi + 4]
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47104e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471044
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4710b6
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x471098
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47108e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4710b6
push edx
push ecx
call fcn.004cb4db
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.004cb998
mov esp, ebp
pop ebp
ret 4
call fcn.004e6589
int3