Function at 0x43ee40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5869a6
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5e91b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [0x5f1660], eax
mov eax, dword [esi + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ee78
sub eax, edx
mov edx, eax
xor ebx, ebx
cmp edx, ebx
jge 0x43ee93
push 0x80070057
call fcn.00402040
mov eax, dword [esi + 0x10]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x43eeb0
push edx
lea ecx, [esi + 0x10]
call fcn.00401dd0
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x43f840
push ebx
push ebx
call fcn.0055a176
add esp, 0x18
cmp eax, ebx
je 0x43eed3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
mov dword [ebp - 0x30], vtable.CMessage.0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], ecx
call fcn.00401f40
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
call fcn.00401f40
mov edx, dword [esi + 0x18]
add eax, 0x10
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 1
mov eax, dword [0x5eb098]
xor esi, esi
cmp eax, ebx
jle 0x43ef6f
mov edi, edi
test esi, esi
js 0x43f07f
cmp esi, eax
jge 0x43f07f
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x43efc4
mov eax, dword [0x5eb094]
mov eax, dword [ebx + eax + 0x10]
push edi
push eax
call fcn.00557b8d
add esp, 8
test eax, eax
je 0x43efce
mov eax, dword [0x5eb098]
inc esi
add ebx, 0x1c
cmp esi, eax
jl 0x43ef30
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub esp, 0x1c
mov ebx, esp
mov dword [ebx + 0xc], eax
mov dword [ebx], vtable.CMessage.0
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [ebp + 8], esp
mov dword [ebp - 0x14], ebx
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x43f084
cmp eax, dword [edi]
jne 0x43f084
mov esi, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x43f0b9
push 0x80004005
call fcn.00402040
push 0x5eb090
mov ecx, esi
call fcn.0042c670
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub esp, 0x1c
mov ebx, esp
mov dword [ebx + 0xc], eax
mov dword [ebx], vtable.CMessage.0
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [ebp + 8], esp
mov dword [ebp - 0x14], ebx
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x43f024
cmp eax, dword [edi]
jne 0x43f024
mov esi, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x43f059
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x43f03d
call fcn.00404ff0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
lea ecx, [edi + 0x10]
push ecx
push eax
lea edx, [esi + 0x10]
push edx
call fcn.0055793f
add esp, 0x10
add esi, 0x10
mov dword [ebx + 0x10], esi
mov byte [ebp - 4], 2
jmp 0x43f0c3
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov dword [ebp + 8], eax
test eax, eax
jne 0x43f0ed
call fcn.00404ff0
call fcn.004666be
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x43f09d
call fcn.00404ff0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
lea ecx, [edi + 0x10]
push ecx
push eax
lea edx, [esi + 0x10]
push edx
call fcn.0055793f
add esp, 0x10
add esi, 0x10
mov dword [ebx + 0x10], esi
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x43f065
cmp eax, dword [esi]
jne 0x43f065
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x43f10c
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 4]
inc ecx
push ecx
lea edx, [esi + 0x10]
push edx
push ecx
add eax, 0x10
push eax
call fcn.0055793f
mov eax, dword [ebp + 8]
add esp, 0x10
add eax, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x18], eax
mov ebx, 0x5eb090
mov byte [ebp - 4], 1
call fcn.0042c570
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f146
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43f15f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret