Function at 0x4b2d00
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4f7748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x11c]
mov eax, dword [esi + 0x120]
push ecx
push eax
push eax
mov dword [esp + 0x2c], 0
call fcn.004bf3e0
mov ebp, dword [esi + 0x120]
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
mov edi, ebx
je 0x4b2d5b
push 0
mov ecx, edi
call fcn.004c06c0
add edi, 8
cmp edi, ebp
jne 0x4b2d4b
mov dword [esi + 0x120], ebx
mov eax, dword [esi + 0xc8]
push 0
push 0
mov eax, dword [eax + 4]
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov dword [esp + 0x20], eax
call fcn.0040bd90
mov ecx, esi
call fcn.004a6a70
test eax, eax
je 0x4b2ef1
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x4b2ef1
mov ecx, dword [esi + 0x120]
sub ecx, eax
sar ecx, 3
je 0x4b2ef1
mov edi, dword [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x10], ebx
mov eax, dword [edi]
mov ebp, dword [ebx + 4]
cmp eax, ebp
je 0x4b2e32
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jge 0x4b2dea
lea edx, [eax - 0xc]
cmp edx, dword [0x50d0e4]
jne 0x4b2df5
mov edx, dword [ebp - 0xc]
test edx, edx
jge 0x4b2eb0
mov ebx, dword [ebp - 8]
mov ecx, edi
push ebx
call fcn.004022b0
test eax, eax
je 0x4b2e2e
mov ecx, dword [edi]
lea eax, [ebx + ebx]
mov dword [esp + 0x2c], eax
push eax
lea eax, [ebx + ebx + 2]
push ebp
push eax
push ecx
call fcn.00402060
mov edx, dword [edi]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov dword [edx - 8], ebx
mov eax, dword [edi]
mov word [ecx + eax], 0
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx]
push ecx
mov ecx, esi
call fcn.004b2ae0
mov edx, dword [esi + 0x128]
mov edi, 1
push edx
mov dword [esi + 0x114], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0
push fcn.004a70f0
call fcn.004df750
mov dword [0x525840], edi
mov eax, dword [esi + 0x10c]
mov dword [0x525844], eax
mov ecx, dword [ebx]
mov eax, dword [esp + 0x34]
mov dword [0x525848], ecx
mov ecx, dword [0x50d0e4]
add esp, 0xc
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4b2eac
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b2eac
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov eax, edi
jmp 0x4b2f22
mov edx, dword [0x50d0e4]
add eax, 0xfffffff4
cmp eax, edx
je 0x4b2edd
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b2ed6
mov edx, dword [edi]
sub edx, 0xc
push edx
call fcn.004de3a6
add esp, 4
mov eax, dword [0x50d0e0]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4b2e32
mov eax, dword [esp + 0x28]
mov edx, dword [0x50d0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b2f20
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b2f20
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004de3a6
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 8