Function at 0x40f958
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
push ebx
push esi
push edi
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x5b0], 0
push 0
call fcn.00452990
add esp, 4
mov dword [ebp - 0x5b0], eax
add dword [ebp - 0x5b0], 0x12c
lea eax, [ebp - 0x5b0]
push eax
call fcn.00452eb0
add esp, 4
lea edi, [ebp - 0x154]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x8d4]
xor eax, eax
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 1
jne 0x40fa02
mov edi, 0x481720
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0x5a4]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40fad5
cmp dword [ebp + 8], 2
jne 0x40fa3b
mov edi, 0x5f5080
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0x5a4]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40fad5
cmp dword [ebp + 8], 3
jne 0x40fa5f
mov esi, str.Process__s_set_to_expire_at_11:59pm__will_auto_terminate_in_5_minutes__please_save_your_work_and_exit.
lea edi, [ebp - 0x5a4]
mov ecx, 0x19
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x40fad5
cmp dword [ebp + 8], 4
jne 0x40fad0
mov edi, 0x5ad8e0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0x5a4]
mov esi, 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 dword [ebp - 0x130], 0x40
push 0
call fcn.00452990
add esp, 4
mov dword [ebp - 0x5b0], eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00452eb0
add esp, 4
lea edi, [ebp - 0x154]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
jmp 0x40fad5
jmp 0x40fd57
mov dword [ebp - 0x5ac], 0
mov dword [ebp - 0x5b4], 0
mov eax, dword [ebp + 0x10]
push eax
push str._d_:__n_n
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edi, [ebp - 0x12c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + ebp - 0x12d]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x5ac]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0043dde0
add esp, 0x14
mov eax, dword [ebp - 0x5b4]
push eax
mov eax, dword [ebp - 0x5ac]
push eax
call fcn.0043e02d
add esp, 8
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0x8c0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edx, 0x46cff8
lea edi, [ebp - 0x8c0]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ax, word [edx]
mov word [edi], ax
mov al, byte [edx + 2]
mov byte [edi + 2], al
cmp dword [ebp - 0x14c], 0xc
jle 0x40fbb2
mov eax, dword [ebp - 0x14c]
sub eax, 0xc
mov dword [ebp - 0x8dc], eax
jmp 0x40fbbe
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x8dc], eax
mov eax, 0x46cffc
mov ecx, 0x46d000
xor edx, edx
cmp dword [ebp - 0x14c], 0xc
setg dl
dec edx
sub ecx, eax
and edx, ecx
add edx, eax
push edx
mov eax, dword [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x8dc]
push eax
push str._02d:_02d_s
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edi, [ebp - 0x280]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, edi
mov ebx, ecx
lea edi, [ebp - 0x8c0]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, edx
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]
cmp dword [0x45e03c], 0
je 0x40fc65
lea eax, [ebp - 0x8c0]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [0x462254]
push eax
push str._r_n__d_PREP_ATERM_MSG__d._d.__s_
call fcn.00452380
add esp, 0x14
cmp dword [0x462254], 0
jne 0x40fc90
push 0x40010
push 0x46d030
lea eax, [ebp - 0x8c0]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40fd57
mov dword [ebp - 0x8d8], 0
cmp dword [ebp - 0x130], 0
je 0x40fcb8
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x5a8], eax
jmp 0x40fcc2
mov dword [ebp - 0x5a8], 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8d4], eax
mov eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x8cc], eax
mov dword [ebp - 0x284], 0
lea eax, [ebp - 0x284]
push eax
push 0
lea eax, [ebp - 0x8d4]
push eax
push 0x43085a
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp - 0x284], 0
jne 0x40fd15
jmp 0x40fd57
mov dword [ebp - 0x8d8], 0
xor eax, eax
mov al, byte [ebp - 0x8c1]
test eax, eax
jne 0x40fd57
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x8d8]
cmp dword [ebp - 0x8d8], 0x320
jle 0x40fd52
jmp 0x40fd57
jmp 0x40fd1f
pop edi
pop esi
pop ebx
leave
ret