Function at 0x406eb0
Capabilities:
Check for software breakpoints
Create thread
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x240], eax
mov esi, dword [ebp - 0x240]
mov al, byte [esi]
cmp al, 0xcc
je 0x406fe8
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x248], ecx
mov esi, dword [ebp - 0x248]
mov al, byte [esi]
cmp al, 0xcc
je 0x406fe8
mov edx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x244], edx
mov esi, dword [ebp - 0x244]
mov al, byte [esi]
cmp al, 0xcc
je 0x406fe8
lea eax, section..pack
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
push 0x4020d8
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x410ae4], eax
push 0xffffffffffffffff
mov ecx, dword [0x410ae4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24c], edx
mov esi, dword [ebp - 0x24c]
mov al, byte [esi]
cmp al, 0xcc
je 0x406f1b
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x254], eax
mov esi, dword [ebp - 0x254]
mov al, byte [esi]
cmp al, 0xcc
je 0x406f1b
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x250], ecx
mov esi, dword [ebp - 0x250]
mov al, byte [esi]
cmp al, 0xcc
je 0x406f1b
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x220]
push eax
push 0x406ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x118], eax
push 2
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x4020d0
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x114], eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x21c]
push eax
call fcn.00409930
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x407095
mov ecx, dword [ebp - 0x110]
mov byte [ecx], 0
lea edi, [ebp - 0x21c]
lea edx, [ebp - 0x10c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4020c4
lea edx, [ebp - 0x10c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.00406080
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4070c8
push 4
push 0
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
mov edx, dword [0x410ae4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, dword [0x410ae4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret