Function at 0x416a10
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x178
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x964]
push edi
test eax, eax
je 0x416d83
push 0x80
mov dword [esp + 0x20], 0x4cc6f4
call fcn.004be967
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x1f
mov dword [esp + 0x30], 0x40
mov dword [esp + 0x2c], 1
call fcn.00424d70
lea ecx, [esp + 0x38]
mov dword [esp + 0x48], 0
call fcn.00422ae0
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push eax
call edi
cmp eax, 1
mov dword [esp + 0x10], eax
jl 0x416af9
or esi, 0xffffffff
test eax, eax
jle 0x416af7
mov ebp, eax
mov ecx, dword [ebx + 0xc]
push 2
push esi
push 0x100c
push ecx
call edi
lea edx, [esp + 0x58]
mov esi, eax
mov eax, dword [ebx + 0xc]
push edx
push 0
push 0x1005
push eax
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 0
call edi
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x38]
neg eax
sbb eax, eax
and eax, edx
push eax
call fcn.0043c6f0
dec ebp
jne 0x416aa4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x416b5b
lea ecx, [esp + 0x38]
call fcn.00424ec0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0x4cc6f4
test eax, eax
je 0x416b41
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x416b41
cmp esi, eax
jge 0x416b2d
test esi, esi
jl 0x416b2d
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + esi*4]
jmp 0x416b2f
xor eax, eax
push eax
call fcn.004be975
mov eax, dword [esp + 0x28]
add esp, 4
inc esi
cmp esi, eax
jl 0x416b20
mov edx, dword [esp + 0x20]
push edx
call fcn.004be975
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178
ret 4
mov eax, dword [esp + 0x40]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x416c3f
cmp esi, eax
jge 0x416b7e
test esi, esi
jl 0x416b7e
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + esi*4]
jmp 0x416b80
xor eax, eax
mov ecx, dword [eax + 0x68]
lea eax, [ebx + 0x20c]
push ecx
lea edx, [esp + 0x84]
push eax
push edx
call fcn.0044a2d0
lea eax, [esp + 0x8c]
push eax
call fcn.0044a200
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x416c2e
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
lea edx, [ecx + 1]
cmp edi, edx
jne 0x416c1a
mov eax, dword [esp + 0x30]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
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 + 0x24]
push ecx
call fcn.004be975
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
add esp, 8
add eax, edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x416b71
lea ecx, [esp + 0x38]
call fcn.00424ec0
mov eax, dword [ebx + 8]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebx + 0x208]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x416c82
call fcn.0045aeb0
test eax, eax
je 0x416c82
mov ecx, dword [ebx + 0x208]
push 0
push 0
call fcn.0045fcf0
push 0
mov ecx, ebx
call fcn.0041a080
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x416cd1
mov edx, dword [ebx + 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0xbc]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416cba
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [ebx + 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xbc], 0
mov eax, dword [0x4eb7bc]
test eax, eax
je 0x416cef
mov edx, dword [0x4eb7c0]
mov eax, dword [0x4eb7c4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
jmp 0x416cff
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x3ff00000
mov ecx, dword [esp + 0x18c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [ebx + 0x200]
push ecx
push edx
push eax
call fcn.00457830
add esp, 0x18
test eax, eax
je 0x416d36
push 0
mov ecx, ebx
call fcn.0041ec00
mov eax, dword [0x4eb46c]
test eax, eax
je 0x416d7a
mov ecx, ebx
call fcn.00420600
mov eax, dword [ebx + 0xbc]
test eax, eax
jne 0x416d7a
mov ecx, dword [ebx + 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x14]
push edx
push 0
push ebx
push 0x411fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xbc], eax
lea ecx, [esp + 0x1c]
call fcn.00403b80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178
ret 4