Function at 0x402e30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499a9a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
call fcn.00402790
mov esi, eax
mov dword [ebp - 0x2c], esi
mov edx, dword [esi + 0x3c]
cmp edx, dword [esi + 0x40]
jne 0x402e89
push 0
push 0
push 0x12
push dword [ebx + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4030d5
call fcn.00402790
push 0
mov eax, dword [eax + 0x38]
imul eax, eax, 0x3e8
push eax
push 0x22b8
push dword [ebx + 0x248]
call dword [sym.imp.USER32.dll_SetTimer]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor ebx, ebx
movq qword [ebp - 0x1c], xmm0
xor eax, eax
mov dword [ebp - 0x24], ebx
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
mov esi, dword [esi + 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
cmp esi, dword [eax + 0x40]
je 0x402fd1
push 0x108
call fcn.00472972
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x402f03
push esi
mov ecx, eax
call fcn.004014f0
jmp 0x402f05
xor eax, eax
push 0
push 4
push eax
push 0x401e10
push 0
push 0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
call fcn.0047bd48
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402f9e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x20]
cmp eax, edi
jae 0x402f72
cmp ebx, eax
ja 0x402f72
sub eax, ebx
sar eax, 2
mov dword [ebp - 0x24], eax
cmp edi, dword [ebp - 0x28]
jne 0x402f61
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403ba0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
test edi, edi
je 0x402f6a
mov eax, dword [ebx + eax*4]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x18], edi
jmp 0x402fbc
cmp edi, dword [ebp - 0x28]
jne 0x402f8d
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403ba0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
test edi, edi
je 0x402f96
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x18], edi
jmp 0x402fbc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x402fbc
mov ecx, eax
call fcn.00401920
push 0x108
push dword [ebp - 0x24]
call fcn.004729aa
add esp, 8
mov eax, dword [ebp - 0x2c]
add esi, 0x108
cmp esi, dword [eax + 0x40]
jne 0x402ee1
mov dword [ebp - 0x24], ebx
sub edi, ebx
xor ecx, ecx
sar edi, 2
mov edx, 4
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004729b8
lea ecx, [edi*4]
mov esi, eax
push ecx
push 0
push esi
mov dword [ebp - 0x2c], esi
call fcn.00474170
add esp, 0x10
xor ecx, ecx
test edi, edi
je 0x403029
mov eax, ebx
mov edx, esi
sub eax, esi
mov dword [ebp - 0x20], eax
cmp edi, ecx
jbe 0x403089
mov eax, dword [eax + edx]
inc ecx
mov dword [edx], eax
add edx, 4
mov eax, dword [ebp - 0x20]
cmp ecx, edi
jb 0x403015
push 0xffffffffffffffff
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
je 0x403051
mov ebx, dword [ebp - 0x2c]
nop
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jb 0x403040
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x2c]
call fcn.004729c1
mov eax, dword [ebp - 0x30]
add esp, 4
push 0
push 0
push 0x12
push dword [eax + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
test ebx, ebx
je 0x4030d5
mov eax, dword [ebp - 0x28]
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x403093
call fcn.00478b61
push str.invalid_vector_T__subscript
call fcn.004714a9
shl eax, 2
cmp eax, 0x1000
jb 0x4030cc
test byte [ebp - 0x1c], 0x1f
je 0x4030a8
call fcn.00478b61
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4030b4
call fcn.00478b61
sub ebx, eax
cmp ebx, 4
jae 0x4030c0
call fcn.00478b61
cmp ebx, 0x23
jbe 0x4030ca
call fcn.00478b61
mov ebx, eax
push ebx
call fcn.004729a5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret