Function at 0x4ff4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4aa2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x4ff608
lea ecx, [eax - 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x4ff52d
push ecx
mov ecx, eax
call fcn.004ffb00
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0xc]
add eax, 0x30
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
mov eax, edi
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [edi + 0xc]
mov edx, dword [eax + 4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], edx
lea edx, [edi + 0x10]
mov eax, dword [eax + 8]
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
call fcn.0047a7e0
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 4], 1
call fcn.0047a7e0
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [esi - 0x30]
add esi, 0xffffffa0
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 2
push esi
call fcn.004fff10
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov edx, esi
add esp, 0x14
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
mov dword [edx + 8], eax
lea edx, [ebp - 0x3c]
push edx
call fcn.00473790
lea eax, [ebp - 0x30]
lea ecx, [esi + 0x1c]
push eax
call fcn.00473790
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x28], ecx
lea ecx, [ebp - 0x30]
mov dword [esi + 0x2c], edx
call fcn.004025c0
lea ecx, [ebp - 0x3c]
call fcn.004025c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
sub eax, dword [esi]
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x4ff62e
lea eax, [edx + edx]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x4ff638
mov dword [ebp - 0x14], eax
jmp 0x4ff64a
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
lea ecx, [eax + eax*2]
shl ecx, 4
push ecx
call fcn.00402b20
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 8]
mov ecx, dword [esi]
push edx
push eax
push ebx
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 3
call fcn.005000a0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x1c], edi
mov dword [ebp + 8], edi
test edi, edi
mov byte [ebp - 4], 4
je 0x4ff683
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004ffb00
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
add edi, 0x30
push ecx
push edi
push eax
push ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], edi
call fcn.005000a0
mov ebx, dword [esi + 4]
mov edi, dword [esi]
add esp, 0x10
cmp edi, ebx
mov dword [ebp + 8], eax
je 0x4ff6c2
lea ecx, [edi + 0x1c]
call fcn.004025c0
lea ecx, [edi + 0x10]
call fcn.004025c0
add edi, 0x30
cmp edi, ebx
jne 0x4ff6ab
mov edi, dword [esi]
mov ecx, dword [esi + 8]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x4ff71b
lea eax, [edx + edx*2]
shl eax, 4
cmp eax, 0x80
jbe 0x4ff6f4
push edi
call fcn.0050a62f
add esp, 4
jmp 0x4ff71b
add eax, 7
mov ecx, 0x5d5740
shr eax, 3
lea ebx, [eax*4 + 0x5d56fc]
call fcn.00402360
mov ecx, dword [ebx]
mov dword [edi], ecx
mov dword [ebx], edi
mov dword [0x5d5740], 0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [esi], eax
lea ecx, [ecx + ecx*2]
mov dword [esi + 4], edx
shl ecx, 4
add ecx, eax
pop edi
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8