Function at 0x4a6590
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, esp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], esp
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x6c], 0x4af530
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0x68]
mov ecx, dword fs:[0]
mov dword [esi + 0x68], ecx
mov dword fs:[0], eax
mov ecx, 0xc
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
movsd qword [esi + 0x30], xmm1
movsd qword [esi + 0x28], xmm0
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x30]
sar eax, 3
imul eax, eax, 0xaaaaaaab
mul ecx
mov edi, eax
seto cl
mov byte [esi + 0xc], cl
jo 0x4a67b5
test edi, edi
je 0x4a6621
push 4
push edi
call fcn.0043c290
add esp, 8
mov ecx, eax
test eax, eax
jne 0x4a6626
push 4
push edi
call fcn.00570650
add esp, 8
ud2
mov ecx, 4
mov edx, 0xaaaaaaab
mov eax, edi
mov ebx, dword [ebp + 8]
mul edx
mov eax, dword [ebp + 0xc]
shr edx, 3
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], 0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm0
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
mov dword [esi + 8], edi
sub edi, eax
mov dword [esi + 4], eax
mov eax, edi
mov dword [esi + 0x14], edi
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp edx, eax
mov dword [esi + 0x10], eax
jae 0x4a6697
mov dword [esi + 0x70], 1
push eax
push 0
push ebx
call fcn.0056b3d0
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x4a6699
xor eax, eax
mov edx, dword [esi + 4]
mov edi, dword [esi + 0x18]
mov dword [esi + 0xc], edi
mov edi, dword [esi + 0x1c]
cmp edx, dword [esi + 8]
mov dword [esi + 4], edi
je 0x4a6714
lea edi, [eax + eax*2]
mov ebx, edx
lea edi, [ecx + edi*4]
lea ecx, [edx + 0x18]
nop dword [eax + eax]
cmp dword [ebx + 8], 0
je 0x4a6720
movsd xmm0, qword [ebx + 0x10]
lea edx, [esi + 0x50]
inc eax
add ecx, 0x18
movsd qword [esi + 0x58], xmm0
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
add ebx, 0x18
movsd qword [esi + 0x50], xmm1
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [edx]
mov edx, dword [edx + 8]
movsd qword [esi + 0x38], xmm0
mov dword [esi + 0x40], edx
mov dword [edi + 8], edx
movsd qword [edi], xmm0
add edi, 0xc
cmp ebx, dword [esi + 8]
jne 0x4a66c0
mov edi, dword [esi + 8]
mov ecx, edi
mov edx, edi
jmp 0x4a6728
mov ecx, dword [esi + 0x14]
test ecx, ecx
mov dword [ebx + 8], eax
jne 0x4a6744
jmp 0x4a6782
mov edi, dword [esi + 8]
add ebx, 0x18
mov edx, ebx
sub edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, edi
sar ecx, 3
imul ecx, ecx, 0xaaaaaaab
mov dword [esi + 0x10], ecx
mov ecx, edi
test ecx, ecx
mov dword [ebx + 8], eax
je 0x4a6782
mov eax, dword [esi + 0x10]
add edx, 0xc
shl eax, 3
lea edi, [eax + eax*2]
jmp 0x4a6768
add edx, 0x18
add edi, 0xffffffe8
je 0x4a6782
mov eax, dword [edx]
test eax, eax
je 0x4a6760
push 1
push eax
push dword [edx - 4]
mov ebx, edx
call fcn.0043c2a0
mov edx, ebx
add esp, 0xc
jmp 0x4a6760
mov eax, dword [esi + 4]
test eax, eax
je 0x4a67a1
shl eax, 3
lea eax, [eax + eax*2]
test eax, eax
je 0x4a67a1
push 8
push eax
push dword [esi + 0xc]
call fcn.0043c2a0
add esp, 0xc
mov eax, dword [esi + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x70], 0
call fcn.004fec10
ud2