Function at 0x4baaf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x591128]
xor eax, ebp
mov dword [esp + 0x78], eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
sar eax, 3
imul edx, eax, 0xaaaaaaab
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x48], eax
mov eax, edx
lea edx, [esi + esi]
add edx, 1
cmp edx, eax
jae 0x4bacc6
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], ebx
jmp 0x4babb1
cmp esi, ecx
sbb eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x44]
mov ebx, ecx
jge 0x4bacbe
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
mov ecx, edi
call fcn.004bad30
sub esp, 8
lea edx, [esi + esi]
add edx, 1
mov eax, dword [esp + 0x5c]
cmp edx, eax
mov ecx, dword [esp + 0x20]
jae 0x4bacc6
mov dword [esp + 0x28], esi
lea esi, [edx + 1]
mov edi, dword [edi + 4]
cmp esi, eax
mov dword [esp + 0x30], edi
jae 0x4bac54
lea ebx, [edx + edx*2]
mov eax, dword [edi + ebx*8 + 4]
mov dword [esp + 0x24], eax
lea ecx, [esi + esi*2]
mov eax, dword [edi + ecx*8 + 4]
mov dword [esp + 0x58], eax
xor eax, dword [esp + 0x24]
mov dword [esp + 0x40], ebx
mov ebx, dword [edi + ebx*8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + ecx*8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
xor ecx, ebx
or ecx, eax
jne 0x4bac30
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + eax*8 + 8]
mov edi, dword [esp + 0x3c]
cmp dword [ecx + edi*8 + 8], eax
mov edi, ecx
jne 0x4bac49
mov eax, dword [esp + 0x3c]
mov eax, dword [edi + eax*8 + 0xc]
mov ebx, dword [esp + 0x40]
cmp eax, dword [edi + ebx*8 + 0xc]
setle al
jmp 0x4bac4c
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sbb eax, dword [esp + 0x24]
setl al
mov edi, dword [esp + 0x30]
jmp 0x4bac4c
setl al
mov ecx, dword [esp + 0x20]
test al, al
jne 0x4bac56
mov esi, edx
mov dword [esp + 0x24], esi
lea edx, [esi + esi*2]
mov esi, dword [edi + edx*8]
mov eax, dword [edi + edx*8 + 4]
mov ebx, eax
xor ebx, ecx
mov edi, esi
mov ecx, dword [esp + 0x2c]
xor edi, ecx
or edi, ebx
jne 0x4bab70
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
cmp dword [ecx + edx*8 + 8], eax
mov edi, dword [esp + 0x44]
jne 0x4bacb0
mov eax, dword [esp + 0x34]
cmp dword [ecx + edx*8 + 0xc], eax
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
jle 0x4bab86
jmp 0x4bacbe
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
jl 0x4bab86
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x74], eax
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x14], xmm0
movups xmm0, xmmword [esp + 0x60]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov ecx, edi
call fcn.004bae90
sub esp, 0x1c
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0050f421
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c