Function at 0x4035c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d6ba
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c8748]
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.00402fc0
mov esi, eax
mov dword [ebp - 0x28], esi
mov edx, dword [esi + 0x3c]
cmp edx, dword [esi + 0x40]
jne 0x403619
push 0
push 0
push 0x12
push dword [ebx + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4037f2
call fcn.00402fc0
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 eax, eax
movq qword [ebp - 0x1c], xmm0
xor ebx, ebx
mov dword [ebp - 0x20], eax
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x28]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 4], ebx
cmp esi, dword [ecx + 0x40]
je 0x40371f
push 0x154
call fcn.00477045
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x403695
push esi
mov ecx, eax
call fcn.00401790
mov ebx, eax
jmp 0x403697
xor ebx, ebx
push 0
push 4
push ebx
push 0x4023e0
push 0
push 0
mov byte [ebp - 4], 0
call fcn.0047f7b9
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4036eb
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [ebp - 0x24]
cmp ebx, edi
je 0x4036d3
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x18], edi
jmp 0x403707
lea eax, [ebp - 0x20]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401410
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
jmp 0x403707
test ebx, ebx
je 0x403704
mov ecx, ebx
call fcn.00401df0
push 0x154
push ebx
call fcn.00476d79
add esp, 8
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
add esi, 0x154
cmp esi, dword [eax + 0x40]
jne 0x403671
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
sub edi, eax
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.00477075
lea ecx, [edi*4]
mov esi, eax
push ecx
push 0
push esi
mov dword [ebp - 0x28], esi
call fcn.00478960
add esp, 0x10
xor ecx, ecx
test edi, edi
je 0x40377c
mov eax, dword [ebp - 0x20]
mov edx, esi
sub eax, esi
mov dword [ebp - 0x2c], eax
cmp edi, ecx
jbe 0x403813
mov eax, dword [eax + edx]
inc ecx
mov dword [edx], eax
add edx, 4
mov eax, dword [ebp - 0x2c]
cmp ecx, edi
jb 0x403764
push 0xffffffffffffffff
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
je 0x4037a2
mov ebx, dword [ebp - 0x28]
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jb 0x403791
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0047707e
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]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4037f2
sub ebx, ecx
mov eax, ecx
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x4037e8
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40380e
push ebx
push ecx
call fcn.00476d79
add esp, 8
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.0047702f
mov esp, ebp
pop ebp
ret
call fcn.0047c5ae
call fcn.00403f30
int3