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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [edi + 0x34]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
jne 0x5880cc
mov eax, dword [edi + 0x130]
cmp eax, ebx
jne 0x5878aa
lea edx, [edi + 0x24]
jmp 0x5878c0
cmp eax, 1
jne 0x5878b4
lea edx, [edi + 0x28]
jmp 0x5878c0
cmp eax, 2
jne 0x587a35
lea edx, [edi + 0x2c]
call fcn.0042fa70
mov esi, eax
cmp esi, ebx
je 0x587a35
push 0x17
mov eax, 7
call fcn.0063a3e0
mov eax, dword [0x84dc00]
add esp, 4
cmp eax, ebx
je 0x5878ed
call dword [0x7c5a74]
mov eax, esi
call fcn.0063c500
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push 1
push 6
push ebx
push eax
call dword [ecx + 0x114]
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push 1
push 5
push ebx
push eax
call dword [edx + 0x114]
test byte [0x95fd68], 1
jne 0x587947
or dword [0x95fd68], 1
mov al, byte [0x759e78]
mov byte [0x95fd67], al
mov byte [0x95fd66], bl
mov byte [0x95fd65], 0x96
mov byte [0x95fd64], bl
call fcn.0042f5c0
test byte [eax + 0x524], 0x40
mov byte [0x95fd64], bl
je 0x587976
mov cl, byte [0x759e78]
mov byte [0x95fd67], cl
mov byte [0x95fd66], 0x96
mov byte [0x95fd65], bl
jmp 0x58798f
mov dl, byte [0x759e78]
mov byte [0x95fd67], dl
mov byte [0x95fd66], bl
mov byte [0x95fd65], 0x96
lea esi, [edi + 0x24]
mov edx, esi
call fcn.0042fa70
cmp byte [eax + 0x1c], bl
jne 0x5879a8
movsx eax, word [eax + 0x16]
mov dword [esp + 0x14], eax
jmp 0x5879b2
mov ecx, dword [eax]
movsx edx, word [ecx + 6]
mov dword [esp + 0x14], edx
mov edx, esi
call fcn.0042fa70
cmp byte [eax + 0x1c], bl
jne 0x5879c4
movsx eax, word [eax + 0x14]
jmp 0x5879ca
mov eax, dword [eax]
movsx eax, word [eax + 4]
cvtsi2ss xmm0, eax
movss dword [esp + 0x2c], xmm0
cvtsi2ss xmm0, dword [esp + 0x14]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [edi + 8]
addss xmm0, dword [0x77ee50]
movss dword [esp + 0x180], xmm0
movss xmm0, dword [edi + 0xc]
addss xmm0, dword [0x77ee4c]
movss dword [esp + 0x184], xmm0
xorps xmm0, xmm0
push 0x95fd64
lea esi, [esp + 0x30]
lea ecx, [esp + 0x184]
movss dword [esp + 0x18c], xmm0
call fcn.0063b030
add esp, 4
call fcn.0063ab30
push 0x15
mov eax, 5
call fcn.0063a3e0
add esp, 4
mov dword [esp + 0x14], ebx
mov ecx, dword [0x77ee48]
cvttss2si eax, dword [edi + 8]
add eax, ecx
cvttss2si ecx, dword [edi + 0xc]
or edx, 0xffffffff
mov dword [esp + 0x34], eax
mov eax, dword [0x77ee44]
mov esi, 0xfffffffe
sub ecx, eax
mov eax, 0xfffffffd
sub ecx, 0xa
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], 3
mov dword [esp + 0x54], 5
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0xfffffffa
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 0xfffffff6
mov dword [esp + 0x68], 0xfffffffa
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 6
mov dword [esp + 0x78], 3
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 4
mov dword [esp + 0x84], 2
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0xfffffffc
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], 2
mov dword [esp + 0x98], 3
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], 0xfffffffb
mov dword [esp + 0xd0], 0xfffffff6
mov dword [esp + 0xd4], 0xfffffffa
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], 2
mov dword [esp + 0xe0], 6
mov dword [esp + 0xe4], 3
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], 0xfffffffc
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
cvttss2si edx, dword [edi + 0x40]
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x28], eax
cdq
mov esi, 0x1b
idiv esi
mov eax, dword [esp + 0x28]
inc eax
cvtsi2ss xmm0, dword [esp + 0x34]
movss xmm6, dword [edi + 0x44]
cvtsi2ss xmm2, ecx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x154], ebx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], ebx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x168], ebx
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x174], ebx
mov dword [esp + 0x178], ebx
cvtsi2ss xmm4, edx
mov dword [esp + 0x2c], edx
cdq
idiv esi
mov eax, dword [edi + 0x124]
imul eax, eax, 0x1b
addss xmm4, xmm0
movss dword [esp + 0x1c], xmm4
lea ecx, [eax + edx]
cvtsi2ss xmm1, edx
mov edx, dword [esp + 0x2c]
addss xmm1, xmm0
cvtsi2ss xmm0, dword [esp + ecx*4 + 0x38]
mov ecx, dword [esp + 0x14]
add eax, edx
cvtsi2ss xmm3, dword [esp + eax*4 + 0x38]
lea eax, [ecx + 1]
cvtsi2ss xmm5, eax
comiss xmm6, xmm5
addss xmm0, xmm2
addss xmm3, xmm2
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x28], eax
jbe 0x587dbd
cvttss2si eax, dword [edi + 0x40]
lea edx, [eax + ecx]
mov eax, dword [edi + 0x128]
imul eax, eax, 0x1b
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
lea eax, [edx + 1]
cdq
idiv esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add edx, esi
cvtsi2ss xmm0, dword [esp + edx*4 + 0x38]
cdq
mov esi, 0x1b
idiv esi
mov eax, dword [esp + 0x14]
addss xmm0, xmm2
movss dword [esp + 0x18], xmm0
add edx, eax
cvtsi2ss xmm0, dword [esp + edx*4 + 0x38]
addss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x18]
jmp 0x587df5
movss xmm6, dword [edi + 0x44]
cvtsi2ss xmm5, ecx
comiss xmm6, xmm5
jbe 0x587dfb
cvttss2si eax, dword [edi + 0x40]
add eax, ecx
cdq
mov esi, 0x1b
idiv esi
mov eax, dword [edi + 0x128]
imul eax, eax, 0x1b
add edx, eax
cvtsi2ss xmm3, dword [esp + edx*4 + 0x38]
addss xmm3, xmm2
movss dword [esp + 0x10], xmm3
movss xmm3, dword [esp + 0x10]
cmp ecx, 0x1a
mov al, byte [edi + 0x121]
mov dl, byte [edi + 0x122]
mov byte [esp + 0x21], al
mov al, byte [edi + 0x120]
mov byte [esp + 0x20], al
mov byte [0x94406a], dl
mov dword [0x7c5a7c], ebx
jne 0x587e39
mov cl, byte [esp + 0x21]
mov byte [0x94406b], 0xff
mov byte [0x944069], cl
jmp 0x587e5a
mov dl, byte [esp + 0x21]
xor eax, eax
lea ecx, [ecx + ecx*8 - 0x37]
cmp ecx, ebx
setl al
mov byte [0x944069], dl
dec eax
and eax, ecx
mov byte [0x94406b], al
mov al, byte [esp + 0x20]
comiss xmm1, xmm4
mov byte [0x944068], al
jbe 0x588081
ucomiss xmm0, xmm3
lahf
test ah, 0x44
push 0x3a83126f
jp 0x587efc
addss xmm0, dword [0x7389bc]
mov esi, dword [esp + 0x28]
push ecx
movss dword [esp], xmm0
push esi
call fcn.0063ad80
movss xmm0, dword [esp + 0x24]
subss xmm0, dword [0x7389bc]
add esp, 0xc
push 0x3a83126f
push ecx
movss dword [esp], xmm0
push esi
call fcn.0063ad80
movss xmm0, dword [esp + 0x1c]
addss xmm0, dword [0x7389bc]
mov esi, dword [esp + 0x28]
add esp, 0xc
push 0x3a83126f
push ecx
movss dword [esp], xmm0
push esi
call fcn.0063ad80
movss xmm0, dword [esp + 0x1c]
subss xmm0, dword [0x7389bc]
add esp, 0xc
push 0x3a83126f
push ecx
movss dword [esp], xmm0
push esi
jmp 0x588079
sub esp, 8
movaps xmm2, xmm0
comiss xmm0, xmm3
movss xmm0, dword [0x7389bc]
subss xmm2, xmm0
movss dword [esp + 4], xmm2
jbe 0x587fcb
addss xmm1, xmm0
movss dword [esp], xmm1
call fcn.0063ad80
movss xmm1, dword [0x7389bc]
movss xmm0, dword [esp + 0x24]
add esp, 0xc
push 0x3a83126f
addss xmm0, xmm1
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x30]
subss xmm0, xmm1
movss dword [esp], xmm0
call fcn.0063ad80
movss xmm0, dword [0x7389bc]
movss xmm1, dword [esp + 0x1c]
add esp, 0xc
push 0x3a83126f
addss xmm1, xmm0
sub esp, 8
movss dword [esp + 4], xmm1
movss xmm1, dword [esp + 0x28]
subss xmm1, xmm0
movss dword [esp], xmm1
call fcn.0063ad80
movss xmm1, dword [0x7389bc]
movss xmm0, dword [esp + 0x1c]
add esp, 0xc
push 0x3a83126f
subss xmm0, xmm1
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x28]
addss xmm0, xmm1
jmp 0x588074
subss xmm1, xmm0
movss dword [esp], xmm1
call fcn.0063ad80
movss xmm1, dword [0x7389bc]
movss xmm0, dword [esp + 0x24]
add esp, 0xc
push 0x3a83126f
addss xmm0, xmm1
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x30]
addss xmm0, xmm1
movss dword [esp], xmm0
call fcn.0063ad80
movss xmm0, dword [0x7389bc]
movss xmm1, dword [esp + 0x1c]
add esp, 0xc
push 0x3a83126f
addss xmm1, xmm0
sub esp, 8
movss dword [esp + 4], xmm1
movss xmm1, dword [esp + 0x28]
addss xmm1, xmm0
movss dword [esp], xmm1
call fcn.0063ad80
movss xmm1, dword [0x7389bc]
movss xmm0, dword [esp + 0x1c]
add esp, 0xc
push 0x3a83126f
subss xmm0, xmm1
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x28]
subss xmm0, xmm1
movss dword [esp], xmm0
call fcn.0063ad80
add esp, 0xc
mov eax, dword [esp + 0x28]
cmp eax, 0x1b
mov dword [esp + 0x14], eax
jl 0x587a48
cmp dword [0x80edd8], ebx
mov dword [0x84dc00], ebx
je 0x5880cc
call dword [0x7c5a74]
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push 1
push 7
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push ebx
push 0xc3
push eax
call dword [edx + 0xe4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret