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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov edx, dword [ebp + 0xc]
mov eax, dword [0x591128]
xor eax, ebp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
lea edx, [edx*8]
lea edx, [edx + edx*2]
mov eax, dword [eax + edx + 0x10]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x20], esi
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x38], edi
mov edi, dword [ebp + 0x24]
mov dword [esp + 0x44], edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x40], edi
mov dword [eax + 0xa0], 0xffffffff
mov eax, ebx
mov dword [esp + 0x28], ecx
mov esi, dword [ecx + 4]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esi + edx]
mov edx, dword [esi + edx + 4]
mov edi, edx
xor edi, eax
mov dword [esp + 0x30], ebx
xor ebx, ecx
or ebx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], esi
jne 0x4ba95f
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + ebx*2]
mov edx, dword [esp + 0x20]
cmp dword [esi + edi*8 + 8], edx
jne 0x4ba9c0
mov eax, dword [esp + 0x38]
cmp dword [esi + edi*8 + 0xc], eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
jle 0x4ba972
jmp 0x4ba9c6
cmp dword [esp + 0x30], ecx
sbb edx, eax
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [ebp + 0xc]
jge 0x4ba9c6
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x64], eax
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x14], xmm0
movups xmm0, xmmword [esp + 0x50]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov ecx, edi
call fcn.004baaf0
sub esp, 0x1c
mov esi, eax
jmp 0x4baac4
mov edi, dword [esp + 0x28]
jl 0x4ba972
mov dword [esp + 0x34], 0
test ebx, ebx
je 0x4baa79
mov edi, dword [esp + 0x3c]
nop word [eax + eax]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], ebx
lea esi, [ebx - 1]
shr esi, 1
lea edx, [esi + esi*2]
mov ebx, dword [edi + edx*8]
mov ecx, dword [edi + edx*8 + 4]
mov dword [esp + 0x4c], ecx
xor eax, ecx
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp + 0x48], ebx
xor ecx, ebx
or ecx, eax
jne 0x4baa30
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
cmp eax, dword [ecx + edx*8 + 8]
jne 0x4baa3c
mov eax, dword [esp + 0x38]
cmp eax, dword [ecx + edx*8 + 0xc]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
jle 0x4baa46
jmp 0x4baa69
cmp edi, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
sbb eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
jge 0x4baa69
mov dword [esp + 4], eax
mov dword [esp], esi
mov ecx, edi
call fcn.004bad30
sub esp, 8
test esi, esi
je 0x4baa6d
mov edi, dword [edi + 4]
mov ebx, esi
mov eax, dword [esp + 0x24]
jmp 0x4ba9e0
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], eax
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 0x14], xmm0
movups xmm0, xmmword [esp + 0x68]
movups xmmword [esp + 4], xmm0
mov esi, dword [esp + 0x34]
mov dword [esp], esi
mov ecx, edi
call fcn.004bae90
sub esp, 0x1c
lea eax, [esi + esi*2]
shl eax, 3
add eax, dword [edi + 4]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [esp + 0x80]
xor ecx, ebp
call fcn.0050f421
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x20