Function at 0x4704d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbd6d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x54c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx]
mov esi, dword [ebp + 8]
mov edi, esi
mov eax, dword [ecx + 4]
sub edi, edx
sub eax, edx
sar edi, 3
sar eax, 3
cmp eax, 0x1fffffff
je 0x470728
mov ecx, dword [ecx + 8]
lea ebx, [eax + 1]
sub ecx, edx
mov dword [ebp - 0x24], ebx
sar ecx, 3
mov eax, 0x1fffffff
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x470723
lea eax, [edx + ecx]
mov ecx, ebx
cmp eax, ebx
cmovae ecx, eax
cmp ecx, 0x1fffffff
ja 0x470723
lea edx, [ecx*8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x47056f
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
jmp 0x4705af
cmp edx, 0x1000
jb 0x4705a1
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x470723
push eax
call fcn.004c04db
add esp, 4
test eax, eax
je 0x470732
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebp - 0x1c], ebx
mov dword [ebx - 4], eax
jmp 0x4705af
push edx
call fcn.004c04db
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
lea eax, [ebx + edi*8]
mov dword [ebp - 4], 0
lea edi, [eax + 8]
mov dword [ebp - 0x18], eax
push 4
mov dword [ebp - 0x2c], edi
call fcn.004c04db
mov ecx, dword [ebp + 0xc]
mov edx, eax
add esp, 4
mov dword [ebp + 0xc], edx
mov ecx, dword [ecx]
mov dword [edx], ecx
mov eax, dword [ebp - 0x18]
add eax, 4
mov byte [ebp - 4], 1
push eax
push 0
push edx
push 0x471d00
push 0
push 0
call fcn.004dcf58
mov ecx, dword [ebp - 0x18]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x470737
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp esi, ecx
jne 0x470644
mov edi, ecx
mov esi, ebx
cmp edx, edi
je 0x4706a8
nop dword [eax]
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, edi
jne 0x470620
jmp 0x4706a8
mov dword [ebp + 0xc], ebx
cmp edx, esi
je 0x47067f
nop dword [eax + eax]
mov esi, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp + 8]
mov dword [eax + 4], ecx
add eax, 8
mov dword [ebp + 0xc], eax
cmp edx, esi
jne 0x470650
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
cmp esi, edx
je 0x4706a8
mov eax, dword [esi]
lea edi, [edi + 8]
mov ecx, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
add esi, 8
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
cmp esi, edx
jne 0x470686
mov esi, dword [ebp - 0x14]
mov edx, dword [esi]
test edx, edx
je 0x4706f9
mov ecx, dword [esi + 4]
mov eax, edx
cmp eax, ecx
je 0x4706cd
nop word [eax + eax]
cmp dword [eax + 4], 0
jne 0x47072d
add eax, 8
cmp eax, ecx
jne 0x4706c0
mov ecx, dword [esi + 8]
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x4706ef
mov edi, dword [edx - 4]
add ecx, 0x23
sub edx, edi
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x470732
mov edx, edi
push ecx
push edx
call fcn.004c04a1
add esp, 8
mov eax, dword [ebp - 0x24]
mov dword [esi], ebx
lea ecx, [ebx + eax*8]
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x28]
add ecx, ebx
mov dword [esi + 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.004014b0
call fcn.00402ae0
call fcn.004dd00c
call fcn.004cfc7c
push 6
mov dword [ecx + 4], 0
call fcn.004c2989
push ecx
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
call fcn.004704b0
add esp, 4
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.00470470
push 0
push 0
call fcn.004c52a5
int3