Function at 0x467f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3ebf
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0xec8960]
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 edi, ecx
mov eax, dword [edi]
lea esi, [edi + 0x1c]
mov ebx, dword [edi + 8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x467f51
push eax
call fcn.0048e011
add esp, 4
mov dword [esi + 0x1c], 0
xor ecx, ecx
mov dword [esi + 0x28], 0
lea eax, [ebx*2 + 1]
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004977d8
xor ecx, ecx
mov dword [esi + 0x1c], eax
add esp, 4
mov edx, 0xfffffffb
test eax, eax
cmove ecx, edx
push ecx
mov ecx, edi
call dword [ebp - 0x1c]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x64]
test eax, eax
je 0x467fb8
push eax
call fcn.0048e011
add esp, 4
mov dword [edi + 0x64], 0
xor ecx, ecx
mov dword [edi + 0x70], 0
lea eax, [ebx*2 + 1]
mov dword [edi + 0x6c], 0
mov dword [edi + 0x68], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004977d8
xor ecx, ecx
mov dword [edi + 0x64], eax
add esp, 4
test eax, eax
mov eax, 0xfffffffb
cmove ecx, eax
push ecx
mov ecx, edi
call dword [ebp - 0x1c]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x90]
test eax, eax
je 0x468025
push eax
call fcn.0048e011
add esp, 4
mov dword [edi + 0x90], 0
xor ecx, ecx
mov dword [edi + 0x9c], 0
lea eax, [ebx*2 + 1]
mov dword [edi + 0x98], 0
mov dword [edi + 0x94], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004977d8
xor ecx, ecx
mov dword [edi + 0x90], eax
add esp, 4
test eax, eax
mov eax, 0xfffffffb
cmove ecx, eax
push ecx
mov ecx, edi
call dword [ebp - 0x1c]
mov ebx, dword [edi + 8]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 0x1c], ebx
mov edx, 0x18
mov dword [ebp - 0x20], ebx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00488b55
add esp, 4
mov dword [ebp - 0x14], eax
push 0x45bff0
push 0x45bfc0
mov dword [ebp - 4], 0
push dword [ebp - 0x1c]
mov dword [eax], ebx
lea ebx, [eax + 4]
push 0x18
push ebx
call fcn.00488ed2
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 8], 0
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x20], 0
jle 0x468147
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [edi + 0x10]
push esi
add ebx, eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x24]
add eax, dword [esi + 0x28]
cdq
idiv dword [esi + 0x20]
test edx, edx
jne 0x468117
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test eax, eax
jne 0x468117
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
push esi
mov dword [eax + ecx*4], ebx
mov eax, dword [esi + 0x28]
inc eax
cdq
idiv dword [esi + 0x20]
mov dword [esi + 0x28], edx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
inc ecx
add eax, 0x18
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, dword [edi + 8]
jl 0x4680e7
mov ebx, dword [edi + 4]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 0x14], ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00488b55
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x459ff0
push 0x459fe0
push ebx
lea esi, [eax + 4]
mov dword [ebp - 4], 1
push 4
push esi
mov dword [eax], ebx
call fcn.00488ed2
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
mov dword [edi + 0x14], esi
cmp dword [edi + 4], ebx
jle 0x4681d7
mov eax, dword [edi + 0x14]
lea esi, [eax + ebx*4]
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push 0x45a080
push 0
push 0
call fcn.0049cd60
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4681d1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4681a7
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push 0x45a0a0
push 0
push 0
call fcn.0049cd60
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x4681fc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [edi + 0x100]
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.004888df
mov esp, ebp
pop ebp
ret