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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
imul eax, eax, 0x544
mov edx, dword [edi + 0x24]
lea ebx, [eax + edi + 0x2c]
mov eax, dword [edi + 0x28]
mov dword [esp + 0x78], ecx
mov ecx, dword [edi + 0xabc]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x4c], eax
lea eax, [eax + edx*4]
mov dword [esp + 0x74], eax
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
xor esi, esi
add ecx, edx
push 0x2c
lea edx, [esp + 0x80]
shr ecx, 3
push esi
push edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x6c], ecx
call fcn.00493620
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [esp + 0x98], 0x7d00
mov byte [esp + 0x7c], 0
test eax, eax
jns 0x489b4c
neg eax
mov dword [ebx], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
lea ecx, [edi + edi*4]
lea ecx, [eax + ecx*8]
cmp dword [ebp + 8], esi
jne 0x489b87
cmp eax, ecx
jae 0x489ba5
jmp 0x489b70
movsx edx, word [eax + 0xc]
mov dword [eax + 0x18], edx
movsx edx, word [eax + 0xe]
mov dword [eax + 0x1c], edx
add eax, 0x28
cmp eax, ecx
jb 0x489b70
jmp 0x489ba5
cmp eax, ecx
jae 0x489ba5
jmp 0x489b90
movsx edx, word [eax + 0xe]
mov dword [eax + 0x18], edx
movsx edx, word [eax + 0xc]
mov dword [eax + 0x1c], edx
add eax, 0x28
cmp eax, ecx
jb 0x489b90
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x4c], eax
jae 0x48a0e4
mov ecx, dword [esp + 0x4c]
mov ebx, dword [ecx]
mov eax, dword [ebx + 0x24]
mov al, byte [eax + 3]
xor edi, edi
mov edx, 0x7d00
mov ecx, 0xffff8300
test al, al
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffff8300
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x6c], ecx
movsx eax, al
jns 0x489c1c
neg eax
mov edx, dword [esp + 0x68]
cmp eax, edx
jne 0x489c5a
mov al, byte [ebx + 3]
test al, al
movsx eax, al
jns 0x489c30
neg eax
cmp eax, edx
jne 0x489c5a
mov dword [esp + 0x3c], ebx
mov ebx, dword [ebx + 0x24]
mov al, byte [ebx + 3]
test al, al
movsx eax, al
jns 0x489c47
neg eax
cmp eax, edx
jne 0x489c53
cmp ebx, dword [esp + 0x3c]
jne 0x489c38
jmp 0x489c56
mov ebx, dword [ebx + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x1b], 0
cmp dword [esp + 0x38], 0
je 0x489f7c
mov eax, dword [ebx + 0x18]
cmp eax, dword [esp + 0x10]
jge 0x489c7b
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0xc]
jle 0x489c85
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1c]
cmp eax, dword [esp + 0x20]
jge 0x489c99
movzx edx, word [ebx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edx
cmp eax, ecx
jle 0x489ca6
movzx edx, word [ebx]
mov ecx, eax
mov dword [esp + 0x28], edx
test byte [ebx], 3
jne 0x489cbf
cmp eax, dword [esp + 0x1c]
jge 0x489cb5
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x14]
jle 0x489cbf
mov dword [esp + 0x14], eax
movsx eax, byte [ebx + 3]
cmp eax, dword [esp + 0x54]
jne 0x489cd3
cmp ebx, dword [esp + 0x3c]
jne 0x489f92
test edi, edi
je 0x489ee6
mov eax, dword [edi + 0x28]
cmp dword [esi + 0x24], eax
jne 0x489ee6
mov dl, byte [eax + 2]
cmp dl, byte [ebx + 2]
jne 0x489daa
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
cmp eax, esi
jge 0x489d05
mov esi, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
cmp eax, edx
jle 0x489d17
mov edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x20]
jge 0x489d2e
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
cmp eax, ecx
jle 0x489d41
mov ecx, eax
movzx eax, word [esp + 0x70]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x1c]
jge 0x489d4f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x14]
jle 0x489d5d
mov dword [esp + 0x14], eax
add edx, esi
sar edx, 1
mov word [edi + 2], dx
mov dl, byte [esp + 0x28]
or dl, byte [esp + 0x34]
mov dword [edi + 0x28], ebx
test dl, 3
je 0x489d88
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x60]
jge 0x489d88
or byte [edi], 1
jmp 0x489d8b
and byte [edi], 0xfe
mov eax, dword [esp + 0x20]
mov edx, ecx
sub edx, eax
mov word [edi + 6], ax
mov eax, dword [esp + 0x5c]
mov word [edi + 8], cx
mov word [edi + 0xa], dx
dec dword [eax]
jmp 0x489f72
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
cdq
mov ebx, eax
xor ebx, edx
mov eax, ecx
sub eax, dword [esp + 0x20]
sub ebx, edx
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jle 0x489e04
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jge 0x489dd6
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x2c]
jle 0x489de4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
sar eax, 1
mov word [edi + 2], ax
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x28], ebx
dec dword [eax]
jmp 0x489f72
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
cmp eax, edx
jge 0x489e16
mov edx, eax
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
cmp ebx, eax
jle 0x489e28
mov eax, ebx
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x24]
add eax, edx
sar eax, 1
mov dword [esi + 0x28], ebx
mov word [esi + 2], ax
mov al, byte [esp + 0x28]
or al, byte [esp + 0x34]
test al, 3
je 0x489e54
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x60]
jge 0x489e54
or byte [esi], 1
mov eax, dword [esp + 0x20]
mov word [esi + 6], ax
mov word [esi + 8], cx
mov dx, cx
sub dx, word [esi + 6]
mov dword [esp + 0x40], eax
mov word [esi + 0xa], dx
movq xmm0, qword [esi]
movzx eax, word [esp + 0x34]
movq qword [edi], xmm0
movq xmm0, qword [esi + 8]
movq qword [edi + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [edi + 0x18], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x20], xmm0
mov edx, dword [esi + 0x28]
mov dword [edi + 0x28], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], edx
movzx edx, word [esp + 0x28]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
dec dword [eax]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x6c], edx
jmp 0x489f72
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edi, [eax + edx]
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
sar edi, 1
mov dword [esi + 0x28], ebx
mov word [esi + 2], di
mov word [esi + 4], ax
mov al, byte [esp + 0x28]
or al, dl
test al, 3
je 0x489f21
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x60]
jge 0x489f21
or byte [esi], 1
mov eax, dword [esp + 0x20]
mov word [esi + 6], ax
mov word [esi + 8], cx
mov di, cx
sub di, word [esi + 6]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0x28]
mov word [esi + 0xa], di
movzx edx, dx
mov edi, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x6c], eax
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
cmp ebx, dword [esp + 0x3c]
jne 0x489f92
cmp byte [esp + 0x1b], 0
jne 0x48a0cf
mov byte [esp + 0x1b], 1
cmp dword [esp + 0x38], 0
jne 0x48a0c3
mov al, byte [ebx + 3]
test al, al
movsx eax, al
mov dword [esp + 0x24], eax
jns 0x489fad
neg eax
cmp eax, dword [esp + 0x68]
je 0x489fbc
cmp ebx, dword [ebx + 0x24]
jne 0x48a0c3
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x5c], ecx
call fcn.00488360
add esp, 8
mov dword [esp + 0x64], eax
test eax, eax
jne 0x48a161
mov esi, dword [esp + 0x44]
movq xmm0, qword [esp + 0x7c]
mov dl, byte [esp + 0x54]
movq qword [esi], xmm0
movq xmm0, qword [esp + 0x84]
movq qword [esi + 8], xmm0
movq xmm0, qword [esp + 0x8c]
movq qword [esi + 0x10], xmm0
movq xmm0, qword [esp + 0x94]
movq qword [esi + 0x18], xmm0
movq xmm0, qword [esp + 0x9c]
movq qword [esi + 0x20], xmm0
mov byte [esi + 1], dl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
test edi, edi
je 0x48a043
lea edi, [esi - 0x2c]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
movzx eax, word [ebx]
mov edx, eax
mov dword [esp + 0x28], edx
movzx edx, dx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
test al, 3
je 0x48a07b
mov dword [esp + 0x1c], 0x7d00
mov dword [esp + 0x14], 0xffff8300
jmp 0x48a085
mov eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 1
cmp ebx, dword [ebx + 0x24]
jne 0x48a0c3
mov ax, word [esp + 0xc]
mov word [esi + 2], ax
test byte [ebx], 3
je 0x48a0a3
or byte [esi], 1
mov dx, word [ebx + 0x1c]
mov word [esi + 6], dx
mov ax, word [ebx + 0x1c]
xor edx, edx
mov word [esi + 8], ax
mov word [esi + 0xa], dx
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
mov ebx, dword [ebx + 0x20]
mov dword [esp + 0x24], ebx
jmp 0x489c63
mov eax, dword [esp + 0x4c]
add eax, 4
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x74]
jb 0x489bb3
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
imul edx, edx, 0x2c
add edx, eax
cmp eax, edx
jae 0x48a15d
sub edx, eax
lea ecx, [eax + 0xa]
dec edx
mov eax, 0xba2e8ba3
mul edx
shr edx, 5
inc edx
mov edi, dword [ecx + 0x1a]
mov ebx, dword [ecx + 0x1e]
mov eax, dword [edi + 0x1c]
mov esi, dword [ebx + 0x1c]
mov edi, dword [edi + 0x24]
mov edi, dword [edi + 0x1c]
cmp eax, esi
jge 0x48a13b
cmp edi, eax
jge 0x48a128
sub eax, edi
sar eax, 1
add word [ecx], ax
mov ebx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
cmp eax, esi
jle 0x48a157
sub eax, esi
sar eax, 1
add word [ecx], ax
jmp 0x48a157
cmp edi, eax
jle 0x48a146
sub edi, eax
sar edi, 1
add word [ecx], di
mov ebx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
cmp eax, esi
jge 0x48a157
sub esi, eax
sar esi, 1
add word [ecx], si
add ecx, 0x2c
dec edx
jne 0x48a107
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret