Function at 0x45bb60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4283
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0xec8980]
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 0x45bbb1
push eax
call fcn.0048e4e1
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.00497dea
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 0x45bc18
push eax
call fcn.0048e4e1
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.00497dea
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 0x45bc85
push eax
call fcn.0048e4e1
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.00497dea
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, 0x24
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.00489180
add esp, 4
mov dword [ebp - 0x14], eax
push 0x45c3e0
push 0x45c3b0
mov dword [ebp - 4], 0
push dword [ebp - 0x1c]
mov dword [eax], ebx
lea ebx, [eax + 4]
push 0x24
push ebx
call fcn.004894fd
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 8], 0
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x20], 0
jle 0x45bda7
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 0x45bd77
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x45bd77
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, 0x24
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, dword [edi + 8]
jl 0x45bd47
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.00489180
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x45a3f0
push 0x45a3e0
push ebx
lea esi, [eax + 4]
mov dword [ebp - 4], 1
push 4
push esi
mov dword [eax], ebx
call fcn.004894fd
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
mov dword [edi + 0x14], esi
cmp dword [edi + 4], ebx
jle 0x45be37
mov eax, dword [edi + 0x14]
lea esi, [eax + ebx*4]
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push 0x45a480
push 0
push 0
call fcn.0049d37f
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x45be31
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp ebx, dword [edi + 4]
jl 0x45be07
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push 0x45a4a0
push 0
push 0
call fcn.0049d37f
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x45be5c
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.00488f09
mov esp, ebp
pop ebp
ret