Function at 0x40e100
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ffe0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x42807c]
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
xor ebx, ebx
mov esi, ecx
push ebx
lea eax, [esi + 0x69c]
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40e15b
push eax
call edi
mov dword [esi + 0x10], 0xffffffff
mov eax, dword [esi + 0x67c]
cmp eax, ebx
je 0x40e16e
push eax
call edi
mov dword [esi + 0x67c], ebx
mov eax, dword [esi + 0x680]
cmp eax, ebx
je 0x40e181
push eax
call edi
mov dword [esi + 0x680], ebx
lea edi, [esi + 0x21c]
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e1a0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x48]
call fcn.00401540
push 4
mov eax, str..dt_
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00402bd0
xor edx, edx
mov eax, edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e1e1
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x2c]
call fcn.00401540
push 5
mov eax, str..cfg_
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402bd0
mov eax, dword [ebp + 8]
cmp eax, 9
jne 0x40e32b
cmp word [esi + 0x62c], bx
je 0x40e25e
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x40e22f
lea ecx, [ebp - 0x48]
lea ebx, [ebp - 0x64]
call fcn.00402350
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x68], 1
jb 0x40e246
mov eax, dword [eax]
lea ecx, [esi + 0x62c]
push ecx
push eax
call fcn.0041011b
add esp, 8
test eax, eax
je 0x40e25e
mov bl, 1
jmp 0x40e260
xor bl, bl
test byte [ebp - 0x68], 1
je 0x40e278
cmp dword [ebp - 0x50], 8
jb 0x40e278
mov eax, dword [ebp - 0x64]
push eax
call fcn.0040ed52
add esp, 4
mov eax, dword [ebp - 0x2c]
test bl, bl
je 0x40e2ac
cmp dword [ebp - 0x18], 8
jae 0x40e288
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40e29d
lea eax, [ebp - 0x48]
push eax
call edi
mov dword [ebp + 8], 0xa
jmp 0x40e37a
cmp dword [ebp - 0x18], 8
jae 0x40e2b5
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40e2c8
lea eax, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x42aba0]
jne 0x40e2e3
mov eax, 1
mov ecx, dword [esi + 0x670]
fild dword [esi + 0x670]
test ecx, ecx
jns 0x40e2f9
fadd dword [0x425fe0]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
test eax, eax
jns 0x40e309
fadd dword [0x425fe0]
fdivp st(1)
fnstcw word [ebp - 0x66]
movzx eax, word [ebp - 0x66]
or eax, 0xc00
mov dword [ebp - 0x6c], eax
fldcw word [ebp - 0x6c]
fistp qword [ebp - 0x70]
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x6c], edx
fldcw word [ebp - 0x66]
jmp 0x40e37a
cmp eax, ebx
je 0x40e38d
cmp dword [esi + 0x674], 0x400
jb 0x40e353
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40e347
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0040e790
test eax, eax
jne 0x40e37c
mov eax, dword [ebp - 0x2c]
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jae 0x40e363
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x40e377
lea eax, [ebp - 0x48]
push eax
call edi
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40e38d
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp + 8]
push ecx
push edx
call eax
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
push ecx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x40e3b3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040ed52
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x40e3d4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0040ed52
add esp, 4
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.0040ed5d
mov esp, ebp
pop ebp
ret 4