Function at 0x414790
Capabilities:
Create thread

Disassembly:
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x80
mov dword [esp + 0x14], 0x4cc6f4
call fcn.004be967
xor ebp, ebp
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0x1f
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], 1
call fcn.00424d70
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], ebp
call fcn.00422ae0
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x1032
push eax
call edi
cmp eax, 1
jl 0x414857
or esi, 0xffffffff
cmp eax, ebp
jle 0x414857
mov ebp, eax
mov ecx, dword [ebx + 0xc]
push 2
push esi
push 0x100c
push ecx
call edi
lea edx, [esp + 0x54]
mov esi, eax
mov eax, dword [ebx + 0xc]
push edx
push 0
push 0x1005
push eax
mov dword [esp + 0x64], 4
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], 0
call edi
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x34]
neg eax
sbb eax, eax
and eax, edx
push eax
call fcn.0043c6f0
dec ebp
jne 0x41480a
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
mov dword [esp + 0x30], esi
jle 0x41493b
cmp esi, eax
jge 0x41487a
test esi, esi
jl 0x41487a
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + esi*4]
jmp 0x41487c
xor eax, eax
mov edx, dword [eax + 0x68]
lea eax, [ebx + 0x20c]
push edx
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0044a2d0
lea ecx, [esp + 0x88]
push ecx
call fcn.0044a200
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x41492a
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea edx, [ecx + 1]
cmp edi, edx
jne 0x414916
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebp, eax
lea ecx, [edx*4 + 4]
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be975
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
add esp, 8
add eax, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
mov dword [esp + 0x30], esi
jl 0x41486d
lea ecx, [esp + 0x34]
call fcn.00424ec0
mov eax, dword [ebx + 0xbc]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x414999
mov eax, dword [ebx + 0xb4]
push eax
call esi
mov ecx, dword [ebx + 0xbc]
push 0xbb8
push ecx
call edi
cmp eax, 0x102
jne 0x414986
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov edx, dword [ebx + 0xbc]
push edx
call ebp
mov dword [ebx + 0xbc], 0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x200]
lea eax, [esp + 0x10]
push 0x4eb4f4
push eax
push ecx
push edx
call fcn.004562d0
add esp, 0x10
test eax, eax
je 0x4149c3
push 1
mov ecx, ebx
call fcn.0041ec00
mov eax, dword [0x4eb46c]
test eax, eax
je 0x414a43
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x414a19
mov eax, dword [ebx + 0xb4]
push eax
call esi
mov ecx, dword [ebx + 0xbc]
push 0xbb8
push ecx
call edi
cmp eax, 0x102
jne 0x4149fc
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov edx, dword [ebx + 0xbc]
push edx
call ebp
mov dword [ebx + 0xbc], 0
mov eax, dword [ebx + 0xbc]
test eax, eax
jne 0x414a43
mov eax, dword [ebx + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x2c]
push ecx
push 0
push ebx
push 0x411fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xbc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x4cc6f4
test eax, eax
je 0x414a82
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x414a82
cmp esi, eax
jge 0x414a6e
test esi, esi
jl 0x414a6e
mov edx, dword [esp + 0x14]
mov eax, dword [edx + esi*4]
jmp 0x414a70
xor eax, eax
push eax
call fcn.004be975
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x414a61
mov eax, dword [esp + 0x14]
push eax
call fcn.004be975
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret