Function at 0x47a860
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b7dd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x562040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
mov eax, esi
mov edx, dword [ecx]
sub eax, edx
sar eax, 3
mov dword [ebp + 8], eax
mov eax, dword [ecx + 4]
sub eax, edx
sar eax, 3
cmp eax, 0x1fffffff
je 0x47aaa8
mov ecx, dword [ecx + 8]
lea edi, [eax + 1]
sub ecx, edx
mov dword [ebp - 0x20], edi
sar ecx, 3
mov eax, 0x1fffffff
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x47aaa3
lea eax, [edx + ecx]
mov ebx, edi
cmp eax, edi
cmovae ebx, eax
cmp ebx, 0x1fffffff
ja 0x47aaa3
lea ecx, [ebx*8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ecx
cmp ecx, 0x1000
jb 0x47a923
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x47aaa3
push eax
call fcn.004cfd1b
add esp, 4
test eax, eax
je 0x47aab2
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x47a939
test ecx, ecx
je 0x47a934
push ecx
call fcn.004cfd1b
add esp, 4
mov edi, eax
jmp 0x47a936
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
lea ebx, [edi + eax*8]
lea eax, [ebx + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x28], eax
call fcn.004cfd1b
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp + 0xc], eax
mov ecx, dword [ecx]
mov dword [eax], ecx
add ebx, 4
mov byte [ebp - 4], 1
push ebx
push 0
push eax
push 0x47b140
push 0
push 0
call fcn.004ec756
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x47aab7
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [ebp + 0xc], eax
cmp esi, eax
jne 0x47a9cd
mov esi, edi
cmp edx, eax
je 0x47aa31
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 + 0xc]
jne 0x47a9a8
jmp 0x47aa31
mov ebx, edi
cmp edx, esi
je 0x47a9f8
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 0x47a9d3
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx + 4]
mov dword [ebp + 0xc], eax
cmp esi, eax
je 0x47aa31
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 [edx + esi], eax
mov dword [edx + esi + 4], ecx
add esi, 8
cmp esi, dword [ebp + 0xc]
jne 0x47aa10
mov edx, dword [ebx]
test edx, edx
je 0x47aa79
mov ecx, dword [ebx + 4]
mov eax, edx
cmp eax, ecx
je 0x47aa4d
cmp dword [eax + 4], 0
jne 0x47aaad
add eax, 8
cmp eax, ecx
jne 0x47aa40
mov ecx, dword [ebx + 8]
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x47aa6f
mov esi, dword [edx - 4]
add ecx, 0x23
sub edx, esi
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x47aab2
mov edx, esi
push ecx
push edx
call fcn.004cfce1
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebx], edi
lea ecx, [edi + eax*8]
mov eax, dword [ebp + 8]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x24]
add ecx, edi
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004015d0
call fcn.004025b0
call fcn.004ec807
call fcn.004df8cc
push 6
mov dword [ebx], 0
call fcn.004d233a
push ecx
mov ecx, dword [ebp - 0x28]
mov edx, ecx
call fcn.0047a840
add esp, 4
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0047a800
push 0
push 0
call fcn.004d4e35
int3