Function at 0x649de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x717908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov al, byte [esp + 0x34]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
mov byte [esp + 0x24], al
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov al, byte [0x85a6c5]
mov dword [esp + 0x3c], esi
test al, 1
jne 0x649e34
or al, 1
mov byte [0x85a6c5], al
call fcn.00648690
mov dword [0x85a6c8], eax
jmp 0x649e39
mov eax, dword [0x85a6c8]
mov ecx, dword [eax + 4]
cmp ecx, esi
jne 0x649e46
mov dword [esp + 0x10], esi
jmp 0x649e52
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, esi
jle 0x649f40
mov al, byte [0x85a6cc]
test al, 1
jne 0x649e7a
or al, 1
mov byte [0x85a6cc], al
call fcn.00648690
mov dword [0x85a6d0], eax
mov ecx, dword [0x85a6d0]
mov eax, dword [ecx + 4]
mov ebp, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 4]
mov ecx, ebp
mov dword [esp + 0x20], edx
lea ecx, [edx + ecx*2 + 0x24]
cmp byte [ecx + ebx], 0
je 0x649f33
mov eax, dword [eax + edi*8 + 4]
mov ecx, ebp
lea edx, [eax + ecx*2 + 0x24]
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov al, byte [edx + ebx]
shl eax, 4
add eax, 0x856438
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00407920
mov edx, dword [esp + 0x2c]
mov ecx, ebp
and ecx, 0x1f
mov eax, dword [edx - 4]
lea esi, [edx - 4]
mov edx, dword [esp + 0x20]
and al, 0xc0
and edx, 1
xor eax, ecx
mov ecx, dword [esp + 0x14]
shl edx, 5
or eax, edx
xor edx, edx
mov dword [esi], eax
mov ecx, dword [ecx + 4]
and eax, 0xffff803f
mov dl, byte [ecx]
mov ecx, edx
and ecx, 0x1ff
shl ecx, 6
or ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push eax
push ebp
push ecx
push edx
call fcn.006482e0
mov ecx, dword [esi]
and eax, 0x1f
shl eax, 0xf
and ecx, 0xfff07fff
or eax, ecx
mov dword [esi], eax
xor esi, esi
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x649e60
mov eax, dword [ebx + 0x50]
cmp eax, esi
je 0x64a023
mov edx, dword [ebx + 0x54]
sub edx, eax
test edx, 0xfffffffc
je 0x64a023
mov ebp, dword [esp + 0x28]
cmp ebp, esi
jne 0x649f68
xor ecx, ecx
jmp 0x649f71
mov ecx, dword [esp + 0x2c]
sub ecx, ebp
sar ecx, 2
mov edx, dword [ebx + 0x50]
cmp edx, esi
jne 0x649f7c
xor eax, eax
jmp 0x649f84
mov eax, dword [ebx + 0x54]
sub eax, edx
sar eax, 2
cmp ebp, esi
lea edi, [eax + ecx]
jne 0x649f8f
xor eax, eax
jmp 0x649f98
mov eax, dword [esp + 0x30]
sub eax, ebp
sar eax, 2
cmp eax, edi
jae 0x64a001
cmp edi, esi
mov eax, edi
jge 0x649fa4
xor eax, eax
shl eax, 2
push eax
call fcn.00652710
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00435ef0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004d1a20
mov edx, dword [esp + 0x28]
push edx
call fcn.00652870
lea eax, [esi + edi*4]
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], eax
call fcn.004f6860
lea ecx, [esi + eax*4]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov esi, dword [ebx + 0x54]
mov ebx, dword [ebx + 0x50]
cmp ebx, esi
je 0x64a023
mov edx, dword [esp + 0x2c]
push ebx
push 1
push edx
lea ecx, [esp + 0x30]
call fcn.0061eb40
add ebx, 4
cmp ebx, esi
jne 0x64a00b
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov edx, dword [eax + 8]
mov dword [eax + 8], esi
mov esi, dword [eax + 0xc]
push edx
mov dword [esp + 0x2c], ecx
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edx
mov dword [eax + 0xc], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], 0xffffffff
call fcn.004d1a20
mov eax, dword [esp + 0x28]
push eax
call fcn.00652870
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4