Function at 0x4385e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e192
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x43861c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp + 8], eax
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
call fcn.00441300
mov ebx, dword [esi + 0x14]
add esp, 4
mov dword [ebp - 0x78], ebx
lea edi, [eax + 0x10]
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x18]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], esi
push 0x38
mov byte [ebp - 4], 1
call fcn.00669e77
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
lea ecx, [eax + 8]
mov dword [eax + 4], 1
mov dword [eax], 0x6ea9b4
mov dword [ebp - 0x30], ecx
mov dword [ecx], 1
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [edi - 0x10]
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp + 8], eax
call fcn.00441300
add eax, 0x10
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], eax
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x24], 0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0043c070
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x58]
mov dword [esi + 0x24], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x438714
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp + 8]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x438738
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 4]
lock inc dword [eax]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x28]
inc eax
cmp ecx, eax
ja 0x438762
push ecx
lea ecx, [ebx + 0x20]
call fcn.00439d60
mov ecx, dword [ebx + 0x28]
lea eax, [ecx - 1]
and dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
dec ecx
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [ebx + 0x24]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x43879f
push 0x28
call fcn.00669e77
mov ecx, dword [ebx + 0x24]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [ebx + 0x24]
mov eax, dword [eax + ecx]
lea ecx, [edi + 0x10]
mov dword [eax], 0x6ea998
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0x24], eax
inc dword [ebx + 0x30]
cmp dword [ebx + 0x18], 0
jne 0x4387df
lea eax, [ebx + 0x1c]
push eax
push 0
push ebx
push 0x43f580
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x4387e3
mov byte [ebp + 0xb], 0
or esi, 0xffffffff
mov byte [ebp - 4], 0xb
mov eax, esi
lea ecx, [edi + 4]
lock xadd dword [ecx], eax
jne 0x43880c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [ebp - 0x30]
lock xadd dword [eax], esi
dec esi
jne 0x43880c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4