Function at 0x417060
Capabilities:
Create thread

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
mov eax, dword [edi + 0x498]
push eax
call fcn.00422a80
mov eax, dword [edi + 0x498]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 0x4cc7c0
mov dword [esp + 0x24], ebx
jle 0x41717d
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
cmp ebx, eax
jge 0x4170ae
test ebx, ebx
jl 0x4170ae
mov ecx, dword [edi + 0x494]
mov esi, dword [ecx + ebx*4]
jmp 0x4170b0
xor esi, esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x41716e
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x41716e
cmp dword [esi + 8], 3
je 0x41716e
mov eax, dword [0x4eb218]
test eax, eax
je 0x417138
mov eax, dword [esi + 0x3c]
cmp eax, 0xffffffff
jl 0x417138
cmp eax, 0xf
jg 0x417138
mov edx, dword [esi + 0x38]
inc eax
push edx
push eax
mov ecx, esi
call fcn.00424190
and eax, 0xff
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x3c]
inc eax
push ecx
and eax, 0xf
push edx
push eax
lea ecx, [esp + 0x4c]
push str._1x_04x_04x_02x_02x_02x_04x
push ecx
call ebp
mov eax, dword [esi + 0x28]
add esp, 0x24
test eax, eax
jne 0x41712c
push 0
mov ecx, esi
call fcn.004245c0
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x30]
push edx
push 0x41
jmp 0x41713c
push 0
push 0x41
call fcn.00423040
mov esi, dword [esi + 0x28]
test esi, esi
je 0x41716e
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00423150
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax*4]
mov dword [esi + 4], edx
mov ecx, dword [esp + 0x18]
mov dword [ecx + eax*4], esi
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x498]
inc ebx
cmp ebx, eax
jl 0x41709f
mov eax, dword [edi + 0xbc]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4171d2
mov edx, dword [edi + 0xb4]
push edx
call esi
mov eax, dword [edi + 0xbc]
push 0xbb8
push eax
call ebx
cmp eax, 0x102
jne 0x4171bf
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [edi + 0xbc]
push ecx
call ebp
mov dword [edi + 0xbc], 0
mov edx, dword [0x4eb330]
mov eax, dword [0x4eb32c]
push edx
push eax
push 0x4cc76c
lea ecx, [esp + 0x20]
call fcn.004234e0
mov eax, dword [0x4eb46c]
test eax, eax
je 0x41726d
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x417243
mov ecx, dword [edi + 0xb4]
push ecx
call esi
mov edx, dword [edi + 0xbc]
push 0xbb8
push edx
call ebx
cmp eax, 0x102
jne 0x417226
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [edi + 0xbc]
push eax
call ebp
mov dword [edi + 0xbc], 0
mov eax, dword [edi + 0xbc]
test eax, eax
jne 0x41726d
mov ecx, dword [edi + 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x10]
push edx
push 0
push edi
push 0x411fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xbc], eax
mov dword [edi + 0x40c], 0
add edi, 0x414
push 0
push edi
push 0x4cc76c
call fcn.0044a190
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], 0x4cc7c4
je 0x4172ce
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
jle 0x4172ce
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x4172c5
mov esi, dword [ecx + 4]
test ecx, ecx
je 0x4172bf
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov ecx, esi
jne 0x4172b2
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x4172a7
mov eax, dword [esp + 0x18]
push eax
call fcn.004be975
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret