Function at 0x41b750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e32d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edx, dword [ebx]
sub eax, edx
sar eax, 3
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
sub eax, edx
mov dword [ebp - 0x10], esp
sar eax, 3
mov dword [ebp - 0x20], ebx
cmp eax, 0x1fffffff
je 0x41b9a7
mov ecx, dword [ebx + 8]
lea edi, [eax + 1]
sub ecx, edx
mov dword [ebp - 0x24], edi
sar ecx, 3
mov eax, 0x1fffffff
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x41b9a2
lea eax, [edx + ecx]
mov ecx, edi
cmp eax, edi
cmovae ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, 0x1fffffff
ja 0x41b9a2
lea edx, [ecx*8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
cmp edx, 0x1000
jb 0x41b80e
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x41b9a2
push eax
call fcn.004209b7
add esp, 4
test eax, eax
je 0x41b9b1
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x41b82a
test edx, edx
je 0x41b825
push edx
call fcn.004209b7
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x41b82a
xor edi, edi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
push 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
lea eax, [edi + eax*8]
mov dword [ebp + 8], eax
add eax, 8
mov dword [ebp - 0x1c], eax
call fcn.004209b7
mov ecx, dword [ebp + 0x10]
mov edx, eax
add esp, 4
mov dword [ebp + 0x10], edx
mov ecx, dword [ecx]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
add eax, 4
mov byte [ebp - 4], 1
push eax
push 0
push edx
push 0x41d100
push 0
push 0
call fcn.0042dde7
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x41b9b6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [ebp + 0x10], eax
cmp esi, eax
jne 0x41b8c8
mov esi, edi
cmp edx, eax
je 0x41b931
mov eax, dword [edx]
lea esi, [esi + 8]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
cmp edx, dword [ebp + 0x10]
jne 0x41b8a3
jmp 0x41b931
mov ebx, edi
cmp edx, esi
je 0x41b8f5
nop
mov eax, dword [edx]
lea ebx, [ebx + 8]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
mov dword [ebx - 8], eax
mov dword [ebx - 4], ecx
cmp edx, esi
jne 0x41b8d0
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx + 4]
mov dword [ebp + 0x10], eax
cmp esi, eax
je 0x41b931
lea edx, [ecx + 8]
sub edx, esi
nop word [eax + eax]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + edx], eax
mov dword [esi + edx + 4], ecx
add esi, 8
cmp esi, dword [ebp + 0x10]
jne 0x41b910
mov edx, dword [ebx]
test edx, edx
je 0x41b979
mov ecx, dword [ebx + 4]
mov eax, edx
cmp eax, ecx
je 0x41b94d
cmp dword [eax + 4], 0
jne 0x41b9ac
add eax, 8
cmp eax, ecx
jne 0x41b940
mov ecx, dword [ebx + 8]
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x41b96f
mov esi, dword [edx - 4]
add ecx, 0x23
sub edx, esi
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x41b9b1
mov edx, esi
push ecx
push edx
call fcn.004209ec
add esp, 8
mov eax, dword [ebp - 0x24]
mov dword [ebx], edi
lea ecx, [edi + eax*8]
mov eax, dword [ebp + 8]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x28]
add ecx, edi
pop edi
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004015e0
call fcn.004057e0
call fcn.0042df9e
call fcn.0042cebf
push 6
mov dword [ecx + 4], 0
call fcn.00420593
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
call fcn.0041b0f0
add esp, 4
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0041a930
push 0
push 0
call fcn.00421f27
int3