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

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x80]
mov ecx, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
push ebx
mov ebx, dword [eax + ecx + 0x14]
movsx eax, word [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x94]
lea edx, [eax + eax*4]
mov eax, dword [0x70b270]
xor ecx, ecx
push esi
push edi
lea edi, [eax + edx*8]
xor edx, edx
mov dword [esp + 0x4e], edx
mov dword [esp + 0x52], edx
mov dword [esp + 0x56], edx
mov dword [esp + 0x3e], ecx
mov dword [esp + 0x42], ecx
mov word [esp + 0x5a], dx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x46], ecx
mov dword [esp + 0x70], edx
mov word [esp + 0x4a], cx
mov dword [esp + 0x74], edx
mov dword [esp + 0x5e], ecx
mov dword [esp + 0x78], edx
xor eax, eax
mov dword [esp + 0x62], ecx
mov dword [esp + 0x66], ecx
mov dword [esp + 0x7c], edx
mov word [esp + 0x3c], ax
mov word [esp + 0x4c], ax
mov word [esp + 0x5c], ax
mov word [esp + 0x6a], cx
test byte [ebx + 0x10], 1
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x88], edx
je 0x4b05ac
mov esi, dword [esp + 0xa0]
cmp esi, eax
je 0x4b05ac
mov edx, dword [esp + 0xa4]
cmp edx, eax
je 0x4b05ac
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x4b05ac
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [ecx]
mov dword [esp + 0x58], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
jmp 0x4b0c20
mov cx, word [ebp + 0x12]
cmp cx, word [ebx + 0x14]
mov esi, 1
jg 0x4b05c0
or ax, si
jmp 0x4b05c4
and ax, 0xfffe
test cx, cx
jne 0x4b05cf
or ax, 2
jmp 0x4b05d3
and ax, 0xfffd
mov edx, dword [0x86b838]
mov cx, word [edx + 0xc]
cmp cx, si
jle 0x4b05e8
or ax, 4
jmp 0x4b05ec
and ax, 0xfffb
mov word [esp + 0x3c], ax
mov ax, word [ebp + 0xe]
cmp ax, word [ebx + 0x16]
jg 0x4b060c
mov al, byte [ebp + 0xc]
test al, al
jne 0x4b060c
mov ax, word [esp + 0x3e]
or ax, si
jmp 0x4b0615
mov ax, word [esp + 0x3e]
and ax, 0xfffe
and ax, 0xfffd
cmp cx, si
jle 0x4b0624
or ax, 4
jmp 0x4b0628
and ax, 0xfffb
fld dword [ebp]
mov word [esp + 0x3e], ax
movsx edx, word [ebx + 0x18]
fmul dword [0x66c50c]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
mov ax, word [esp + 0x40]
jp 0x4b0655
or ax, si
jmp 0x4b0659
and ax, 0xfffe
and ax, 0xfffd
cmp cx, si
jle 0x4b0668
or ax, 4
jmp 0x4b066c
and ax, 0xfffb
fld dword [0x66c410]
mov word [esp + 0x40], ax
fsub dword [ebp + 4]
movsx eax, word [ebx + 0x1a]
mov dword [esp + 0x1c], eax
fmul dword [0x66c50c]
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 1
jne 0x4b069c
or word [esp + 0x42], si
jmp 0x4b06a1
and byte [esp + 0x42], 0xfe
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
test eax, eax
jge 0x4b06be
xor eax, eax
jmp 0x4b06f4
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
cmp eax, 0x64
jle 0x4b06df
mov eax, 0x64
jmp 0x4b06f4
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
mov ecx, 0x64
sub ecx, eax
jne 0x4b0704
or byte [esp + 0x42], 2
jmp 0x4b0709
and byte [esp + 0x42], 0xfd
mov ecx, dword [0x86b838]
cmp word [ecx + 0xc], si
jle 0x4b071c
or byte [esp + 0x42], 4
jmp 0x4b0721
and byte [esp + 0x42], 0xfb
mov ax, word [ebp + 0x1c]
cmp ax, word [ebx + 0x14]
jg 0x4b0732
or word [esp + 0x44], si
jmp 0x4b0737
and byte [esp + 0x44], 0xfe
test ax, ax
jne 0x4b0743
or byte [esp + 0x44], 2
jmp 0x4b0748
and byte [esp + 0x44], 0xfd
cmp word [ecx + 0xc], si
jle 0x4b0755
or byte [esp + 0x44], 4
jmp 0x4b075a
and byte [esp + 0x44], 0xfb
mov dx, word [ebp + 0x18]
cmp dx, word [ebx + 0x16]
jg 0x4b0772
mov al, byte [ebp + 0x16]
test al, al
jne 0x4b0772
or word [esp + 0x46], si
jmp 0x4b0777
and byte [esp + 0x46], 0xfe
and byte [esp + 0x46], 0xfd
cmp word [ecx + 0xc], si
jle 0x4b0789
or byte [esp + 0x46], 4
jmp 0x4b078e
and byte [esp + 0x46], 0xfb
mov esi, dword [0x6eb40c]
mov eax, edi
lea ecx, [esp + 0x3c]
mov edx, 8
nop
test byte [ecx], 1
je 0x4b07b1
cmp dword [eax], 0xffffffff
jne 0x4b07b7
mov edi, dword [esi + 0xc]
mov dword [eax], edi
jmp 0x4b07b7
mov dword [eax], 0xffffffff
add ecx, 2
add eax, 4
dec edx
jne 0x4b07a0
mov si, word [ebp + 0x12]
cmp si, word [ebx + 0x14]
jg 0x4b07dc
mov al, byte [ebp + 0xc]
test al, al
jne 0x4b07dc
mov ax, word [esp + 0x4c]
or ax, 1
jmp 0x4b07e5
mov ax, word [esp + 0x4c]
and ax, 0xfffe
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x4b07f2
or ax, 4
jmp 0x4b07f6
and ax, 0xfffb
test si, si
jne 0x4b0801
or ax, 2
jmp 0x4b0805
and ax, 0xfffd
test ax, ax
jne 0x4b0810
mov ax, 8
jmp 0x4b0814
and ax, 0xfff7
mov cx, word [ebp + 0xe]
or ax, 0x10
mov word [esp + 0x4c], ax
cmp cx, word [ebx + 0x16]
mov ax, word [esp + 0x4e]
jg 0x4b0832
or ax, 1
jmp 0x4b0836
and ax, 0xfffe
test dl, dl
je 0x4b0840
or ax, 4
jmp 0x4b0844
and ax, 0xfffb
test cx, cx
jne 0x4b084f
or ax, 2
jmp 0x4b0853
and ax, 0xfffd
test ax, ax
jne 0x4b085e
mov ax, 8
jmp 0x4b0862
and ax, 0xfff7
fld dword [ebp]
or ax, 0x10
fmul dword [0x66c50c]
mov word [esp + 0x4e], ax
movsx eax, word [ebx + 0x18]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
jp 0x4b0890
or byte [esp + 0x50], 1
jmp 0x4b0895
and byte [esp + 0x50], 0xfe
mov al, byte [ebp + 8]
test al, al
je 0x4b08a3
or byte [esp + 0x50], 4
jmp 0x4b08a8
and byte [esp + 0x50], 0xfb
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
test eax, eax
jge 0x4b08c5
xor eax, eax
jmp 0x4b08fb
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
cmp eax, 0x64
jle 0x4b08e6
mov eax, 0x64
jmp 0x4b08fb
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
mov ecx, 0x64
sub ecx, eax
mov ax, word [esp + 0x50]
jne 0x4b090f
or ax, 2
jmp 0x4b0913
and ax, 0xfffd
test ax, ax
jne 0x4b091e
mov ax, 8
jmp 0x4b0922
and ax, 0xfff7
fld dword [0x66c410]
or ax, 0x10
fsub dword [ebp + 4]
mov word [esp + 0x50], ax
movsx edx, word [ebx + 0x1a]
mov dword [esp + 0x1c], edx
fmul dword [0x66c50c]
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 1
jne 0x4b0956
or byte [esp + 0x52], 1
jmp 0x4b095b
and byte [esp + 0x52], 0xfe
mov al, byte [ebp + 8]
test al, al
je 0x4b0969
or byte [esp + 0x52], 4
jmp 0x4b096e
and byte [esp + 0x52], 0xfb
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
test eax, eax
jge 0x4b098b
xor eax, eax
jmp 0x4b09c1
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
cmp eax, 0x64
jle 0x4b09ac
mov eax, 0x64
jmp 0x4b09c1
fld dword [ebp + 4]
push ecx
fmul dword [0x66c50c]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
mov ecx, 0x64
sub ecx, eax
mov ax, word [esp + 0x52]
jne 0x4b09d5
or ax, 2
jmp 0x4b09d9
and ax, 0xfffd
test ax, ax
jne 0x4b09e4
mov ax, 8
jmp 0x4b09e8
and ax, 0xfff7
mov di, word [ebp + 0x1c]
or ax, 0x10
mov word [esp + 0x52], ax
cmp di, word [ebx + 0x14]
jg 0x4b0a0d
mov al, byte [ebp + 0x16]
test al, al
jne 0x4b0a0d
mov ax, word [esp + 0x4c]
or ax, 1
jmp 0x4b0a16
mov ax, word [esp + 0x4c]
and ax, 0xfffe
mov cl, byte [ebp + 0x16]
test cl, cl
je 0x4b0a23
or ax, 4
jmp 0x4b0a27
and ax, 0xfffb
test di, di
jne 0x4b0a32
or ax, 2
jmp 0x4b0a36
and ax, 0xfffd
test ax, ax
jne 0x4b0a41
mov ax, 8
jmp 0x4b0a45
and ax, 0xfff7
mov si, word [ebp + 0x18]
or ax, 0x10
mov word [esp + 0x4c], ax
cmp si, word [ebx + 0x16]
mov ax, word [esp + 0x4e]
jg 0x4b0a63
or ax, 1
jmp 0x4b0a67
and ax, 0xfffe
test cl, cl
je 0x4b0a71
or ax, 4
jmp 0x4b0a75
and ax, 0xfffb
test si, si
jne 0x4b0a80
or ax, 2
jmp 0x4b0a84
and ax, 0xfffd
test ax, ax
jne 0x4b0a8f
mov ax, 8
jmp 0x4b0a93
and ax, 0xfff7
fld dword [ebp]
mov dx, word [ebp + 0x12]
fmul dword [0x66c4a8]
or ax, 0x10
mov word [esp + 0x4e], ax
mov ax, word [ebp + 0xe]
mov word [esp + 0x5c], dx
mov word [esp + 0x5e], ax
call fcn.006343a4
fld dword [0x66c410]
fsub dword [ebp + 4]
mov word [esp + 0x60], ax
fmul dword [0x66c50c]
call fcn.006343a4
mov ecx, dword [0x6aac04]
mov word [esp + 0x62], ax
movsx eax, word [esp + 0x94]
shl eax, 6
mov word [esp + 0x66], si
lea esi, [eax + ecx]
mov word [esp + 0x64], di
mov edx, dword [esi + 0x38]
cmp edx, 0xffffffff
je 0x4b0b51
mov edi, edx
sar edi, 0x10
test dx, dx
jl 0x4b0b51
mov ecx, dword [0x851c30]
cmp dx, word [ecx + 0x20]
jge 0x4b0b51
movsx eax, word [ecx + 0x22]
movsx ebp, dx
imul eax, ebp
mov ebp, dword [ecx + 0x34]
mov cx, word [eax + ebp]
add eax, ebp
test cx, cx
je 0x4b0b51
test di, di
je 0x4b0b38
cmp cx, di
jne 0x4b0b51
mov cl, byte [eax + 3]
mov edi, 1
shl edi, cl
test edi, edi
je 0x4b0b51
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b0b51
mov ebp, edx
jmp 0x4b0b54
or ebp, 0xffffffff
cmp dword [esi + 0x3c], 0x3f800000
jne 0x4b0c0d
cmp ebp, 0xffffffff
je 0x4b0c0d
mov eax, dword [esp + 0x94]
cmp ax, 0xffff
je 0x4b0b89
mov edx, dword [0x86b838]
movsx eax, ax
mov eax, dword [edx + eax*4 + 4]
cmp eax, 0xffffffff
jne 0x4b0b8e
or eax, 0xffffffff
jmp 0x4b0ba3
mov ecx, dword [0x86b840]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
shl eax, 9
mov eax, dword [eax + edx + 0x34]
lea edi, [esp + 0x30]
mov ecx, eax
call fcn.00564950
lea eax, [esp + 0x24]
mov ecx, ebp
call fcn.004f24e0
fld dword [esp + 0x30]
fsub dword [esp + 0x24]
fld dword [esp + 0x34]
fsub dword [esp + 0x28]
fld dword [esp + 0x38]
fsub dword [esp + 0x2c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fmul dword [0x66cb60]
fstp dword [esp + 0x84]
fld dword [esp + 0x2c]
fsub dword [esp + 0x38]
fmul dword [0x66cb60]
fstp dword [esp + 0x88]
jmp 0x4b0c20
mov eax, 0xffc00000
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
mov edi, dword [esp + 0x94]
je 0x4b0c58
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0xa4]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
push ecx
push edi
push eax
call fcn.004b0480
add esp, 0x1c
mov edx, dword [0x738b8c]
mov eax, dword [0x86b838]
mov ax, word [eax + 0xc]
xor ecx, ecx
cmp word [edx + 0x3c], 2
setne cl
cmp ax, 1
jne 0x4b0c7c
or ecx, 2
jmp 0x4b0c7f
and ecx, 0xfffffffd
cmp ax, 1
jle 0x4b0c8a
or ecx, 4
jmp 0x4b0c8d
and ecx, 0xfffffffb
mov eax, dword [ebx + 0x60]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x4b0d0d
xor eax, eax
mov ebp, 0x3f80
mov edx, dword [ebx + 0x64]
imul eax, eax, 0xb4
mov ecx, dword [eax + edx + 0x60]
add eax, edx
cmp ecx, ebp
jne 0x4b0cbb
mov dword [eax + 0x60], 0x3f800000
cmp dword [eax + 0x6c], ebp
jne 0x4b0cc7
mov dword [eax + 0x6c], 0x3f800000
test byte [eax + 2], 1
jne 0x4b0d02
mov cl, byte [eax + 4]
mov edx, 1
shl edx, cl
movsx ecx, word [esp + 0x10]
test ecx, edx
je 0x4b0d02
movsx ecx, word [eax]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + ecx*4]
movsx ecx, word [esp + ecx*2 + 0x3c]
push edx
push ecx
add eax, 0x24
push eax
lea edx, [ebx + 0x3c]
push edx
push edi
call fcn.004aabc0
add esp, 0x14
mov ecx, dword [ebx + 0x60]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x4b0ca1
mov eax, dword [ebx + 0x6c]
xor edi, edi
test eax, eax
jle 0x4b0d7b
mov ebp, dword [esp + 0x14]
xor eax, eax
lea esp, [esp]
mov ecx, dword [ebx + 0x70]
imul eax, eax, 0xb4
add eax, ecx
mov edx, eax
test byte [edx + 2], 1
jne 0x4b0d70
mov cl, byte [edx + 4]
mov eax, 1
shl eax, cl
movsx ecx, word [esp + 0x10]
test ecx, eax
je 0x4b0d70
movsx eax, word [edx]
xor ecx, ecx
mov cl, byte [esp + eax*2 + 0x5c]
fild dword [ebp + eax*4]
movsx eax, word [esp + eax*2 + 0x3c]
push 0
lea esi, [edx + 0x24]
push ecx
fstp dword [esp]
push eax
push ecx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
call fcn.004aa090
add esp, 0x18
mov ecx, dword [ebx + 0x6c]
inc edi
movsx eax, di
cmp eax, ecx
jl 0x4b0d20
mov eax, dword [ebx + 0x78]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x4b0eb6
xor eax, eax
mov ecx, dword [ebx + 0x7c]
lea esi, [eax + eax*4]
shl esi, 5
mov al, byte [esi + ecx + 2]
add esi, ecx
test al, 1
jne 0x4b0e9f
mov cl, byte [esi + 4]
movsx eax, word [esp + 0x10]
mov edx, 1
shl edx, cl
test eax, edx
je 0x4b0e9f
test byte [esi + 0x78], 1
mov edi, 1
je 0x4b0dda
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x4f4]
mov di, word [edx + 0xa]
mov al, byte [esi + 0x6a]
test al, al
je 0x4b0e64
movsx ebp, word [esi]
mov eax, dword [esp + ebp*4 + 0x6c]
cmp eax, 0xffc00000
lea ebp, [esp + ebp*4 + 0x6c]
je 0x4b0e9f
fld qword [0x66c450]
fld qword [0x66c688]
call fcn.00623800
fst dword [esp + 0x18]
fmul dword [ebp]
fabs
fld dword [esp + 0x18]
call fcn.0062410a
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x20]
movsx eax, word [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + eax*4]
xor ecx, ecx
mov cx, word [esp + eax*2 + 0x3c]
push 0
push edx
mov edx, dword [esp + 0x28]
push ecx
movsx ecx, di
mov dword [esp + 0x24], ecx
push edx
fild dword [esp + 0x28]
push ecx
fdivr dword [esp + eax*4 + 0x80]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
jmp 0x4b0e86
movsx eax, word [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + eax*4]
xor ecx, ecx
mov cx, word [esp + eax*2 + 0x3c]
movsx eax, word [esp + eax*2 + 0x5c]
push 0
push edx
cdq
push ecx
movsx ecx, di
push 0xffffffffffffffff
idiv ecx
push eax
mov eax, dword [esp + 0xa8]
add esi, 0x24
lea edx, [ebx + 0x3c]
push esi
push edx
push eax
call fcn.004aa580
add esp, 0x20
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x78]
inc eax
mov dword [esp + 0x1c], eax
movsx eax, ax
cmp eax, ecx
jl 0x4b0d90
mov eax, dword [ebx + 0x90]
xor esi, esi
test eax, eax
jle 0x4b0f3d
xor eax, eax
jmp 0x4b0ed0
mov edx, dword [ebx + 0x94]
imul eax, eax, 0x68
mov cl, byte [eax + edx + 2]
add eax, edx
test cl, 1
jne 0x4b0f2f
mov cl, byte [eax + 4]
mov edx, 1
shl edx, cl
movsx ecx, word [esp + 0x10]
test ecx, edx
je 0x4b0f2f
mov edx, dword [0x86b838]
cmp word [edx + 0xc], 1
movsx ecx, word [eax]
setg dl
add eax, 0x24
push edx
xor edx, edx
mov dx, word [esp + ecx*2 + 0x40]
push edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
movsx ecx, word [esp + ecx*2 + 0x54]
push edx
push ecx
push eax
lea edx, [ebx + 0x3c]
push edx
call fcn.004aae20
add esp, 0x18
mov ecx, dword [ebx + 0x90]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x4b0ed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret