Function at 0x46cd70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50de12
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10], esi
sub eax, dword [ebp + 0x20]
jne 0x46cdca
mov byte [ebp + 0xb], al
jmp 0x46cfd1
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebp + 0x14]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x46cf83
lea eax, [ecx + edx*4]
cmp esi, dword [ebp - 0x20]
je 0x46cdf6
mov eax, dword [eax]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x24], esi
jmp 0x46ce09
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00403f00
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0x18]
mov eax, 0xcccccccd
inc dword [ebp - 0x10]
mov ecx, edi
sub ecx, dword [ebp + 0x14]
sar ecx, 2
mul ecx
mov eax, dword [ebp - 0x10]
shr edx, 5
cmp eax, edx
jbe 0x46cecf
push 0x24
call fcn.00443e65
mov esi, eax
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 8]
lea edi, [esi + 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esi + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004031e0
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x46ce96
mov eax, dword [ebp + 0x24]
mov ecx, edi
mov edx, dword [ebp + 0x20]
sub eax, edx
sar eax, 3
imul eax, eax, 0xcccccccd
push eax
push edx
call fcn.00403b00
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [eax]
lock inc dword [eax]
push esi
push 0
push 0x46ef60
call fcn.0044d973
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
mov edi, dword [ebp + 0x18]
cmovne esi, ecx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
inc edx
sub edi, ecx
mov dword [ebp - 0x1c], edx
sar edi, 2
cmp edx, edi
jb 0x46cde2
test eax, eax
jle 0x46cf80
push 0x24
call fcn.00443e65
mov esi, eax
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 8]
lea edi, [esi + 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esi + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004031e0
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x46cf58
mov eax, dword [ebp + 0x24]
mov ecx, edi
mov edx, dword [ebp + 0x20]
sub eax, edx
sar eax, 3
imul eax, eax, 0xcccccccd
push eax
push edx
call fcn.00403b00
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 0x20], edi
mov eax, dword [edi]
lock inc dword [eax]
push esi
push 0
push 0x46ef60
call fcn.0044d973
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x46cf83
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
cmp dword [eax], 0
jle 0x46cf9b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [edi]
cmp dword [eax], 0
jg 0x46cf90
movups xmm0, xmmword [ebp + 0x2c]
sub esp, 0x10
mov eax, esp
push ecx
movups xmmword [eax], xmm0
mov eax, dword [ebp + 0x10]
mov esi, esp
add eax, 0xfffffff0
mov dword [ebp + 0xc], esi
push eax
call fcn.00403870
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
push dword [ebp + 8]
call fcn.0046ca30
mov ecx, dword [ebp - 0x14]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 2
test ecx, ecx
je 0x46d010
mov eax, dword [ebp - 0x20]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d006
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d095
push edx
push ecx
call fcn.00443e34
add esp, 8
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d02f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x46d077
mov ecx, dword [ebp + 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x46d058
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d095
push ecx
push edx
call fcn.00443e34
add esp, 8
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
lea ecx, [ebp + 0x20]
call fcn.004034d0
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x34
call fcn.0044d695
int3