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

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x80]
mov ecx, dword [0x816d04]
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 [0x6b43f8]
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 0x4b55dc
mov esi, dword [esp + 0xa0]
cmp esi, eax
je 0x4b55dc
mov edx, dword [esp + 0xa4]
cmp edx, eax
je 0x4b55dc
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x4b55dc
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 0x4b5c50
mov cx, word [ebp + 0x12]
cmp cx, word [ebx + 0x14]
mov esi, 1
jg 0x4b55f0
or ax, si
jmp 0x4b55f4
and ax, 0xfffe
test cx, cx
jne 0x4b55ff
or ax, 2
jmp 0x4b5603
and ax, 0xfffd
mov edx, dword [0x8154d8]
mov cx, word [edx + 0xc]
cmp cx, si
jle 0x4b5618
or ax, 4
jmp 0x4b561c
and ax, 0xfffb
mov word [esp + 0x3c], ax
mov ax, word [ebp + 0xe]
cmp ax, word [ebx + 0x16]
jg 0x4b563c
mov al, byte [ebp + 0xc]
test al, al
jne 0x4b563c
mov ax, word [esp + 0x3e]
or ax, si
jmp 0x4b5645
mov ax, word [esp + 0x3e]
and ax, 0xfffe
and ax, 0xfffd
cmp cx, si
jle 0x4b5654
or ax, 4
jmp 0x4b5658
and ax, 0xfffb
fld dword [ebp]
mov word [esp + 0x3e], ax
movsx edx, word [ebx + 0x18]
fmul dword [0x612324]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
mov ax, word [esp + 0x40]
jp 0x4b5685
or ax, si
jmp 0x4b5689
and ax, 0xfffe
and ax, 0xfffd
cmp cx, si
jle 0x4b5698
or ax, 4
jmp 0x4b569c
and ax, 0xfffb
fld dword [0x612224]
mov word [esp + 0x40], ax
fsub dword [ebp + 4]
movsx eax, word [ebx + 0x1a]
mov dword [esp + 0x1c], eax
fmul dword [0x612324]
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 1
jne 0x4b56cc
or word [esp + 0x42], si
jmp 0x4b56d1
and byte [esp + 0x42], 0xfe
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
test eax, eax
jge 0x4b56ee
xor eax, eax
jmp 0x4b5724
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
cmp eax, 0x64
jle 0x4b570f
mov eax, 0x64
jmp 0x4b5724
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
mov ecx, 0x64
sub ecx, eax
jne 0x4b5734
or byte [esp + 0x42], 2
jmp 0x4b5739
and byte [esp + 0x42], 0xfd
mov ecx, dword [0x8154d8]
cmp word [ecx + 0xc], si
jle 0x4b574c
or byte [esp + 0x42], 4
jmp 0x4b5751
and byte [esp + 0x42], 0xfb
mov ax, word [ebp + 0x1c]
cmp ax, word [ebx + 0x14]
jg 0x4b5762
or word [esp + 0x44], si
jmp 0x4b5767
and byte [esp + 0x44], 0xfe
test ax, ax
jne 0x4b5773
or byte [esp + 0x44], 2
jmp 0x4b5778
and byte [esp + 0x44], 0xfd
cmp word [ecx + 0xc], si
jle 0x4b5785
or byte [esp + 0x44], 4
jmp 0x4b578a
and byte [esp + 0x44], 0xfb
mov dx, word [ebp + 0x18]
cmp dx, word [ebx + 0x16]
jg 0x4b57a2
mov al, byte [ebp + 0x16]
test al, al
jne 0x4b57a2
or word [esp + 0x46], si
jmp 0x4b57a7
and byte [esp + 0x46], 0xfe
and byte [esp + 0x46], 0xfd
cmp word [ecx + 0xc], si
jle 0x4b57b9
or byte [esp + 0x46], 4
jmp 0x4b57be
and byte [esp + 0x46], 0xfb
mov esi, dword [0x68cca8]
mov eax, edi
lea ecx, [esp + 0x3c]
mov edx, 8
nop
test byte [ecx], 1
je 0x4b57e1
cmp dword [eax], 0xffffffff
jne 0x4b57e7
mov edi, dword [esi + 0xc]
mov dword [eax], edi
jmp 0x4b57e7
mov dword [eax], 0xffffffff
add ecx, 2
add eax, 4
dec edx
jne 0x4b57d0
mov si, word [ebp + 0x12]
cmp si, word [ebx + 0x14]
jg 0x4b580c
mov al, byte [ebp + 0xc]
test al, al
jne 0x4b580c
mov ax, word [esp + 0x4c]
or ax, 1
jmp 0x4b5815
mov ax, word [esp + 0x4c]
and ax, 0xfffe
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x4b5822
or ax, 4
jmp 0x4b5826
and ax, 0xfffb
test si, si
jne 0x4b5831
or ax, 2
jmp 0x4b5835
and ax, 0xfffd
test ax, ax
jne 0x4b5840
mov ax, 8
jmp 0x4b5844
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 0x4b5862
or ax, 1
jmp 0x4b5866
and ax, 0xfffe
test dl, dl
je 0x4b5870
or ax, 4
jmp 0x4b5874
and ax, 0xfffb
test cx, cx
jne 0x4b587f
or ax, 2
jmp 0x4b5883
and ax, 0xfffd
test ax, ax
jne 0x4b588e
mov ax, 8
jmp 0x4b5892
and ax, 0xfff7
fld dword [ebp]
or ax, 0x10
fmul dword [0x612324]
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 0x4b58c0
or byte [esp + 0x50], 1
jmp 0x4b58c5
and byte [esp + 0x50], 0xfe
mov al, byte [ebp + 8]
test al, al
je 0x4b58d3
or byte [esp + 0x50], 4
jmp 0x4b58d8
and byte [esp + 0x50], 0xfb
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
test eax, eax
jge 0x4b58f5
xor eax, eax
jmp 0x4b592b
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
cmp eax, 0x64
jle 0x4b5916
mov eax, 0x64
jmp 0x4b592b
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
mov ecx, 0x64
sub ecx, eax
mov ax, word [esp + 0x50]
jne 0x4b593f
or ax, 2
jmp 0x4b5943
and ax, 0xfffd
test ax, ax
jne 0x4b594e
mov ax, 8
jmp 0x4b5952
and ax, 0xfff7
fld dword [0x612224]
or ax, 0x10
fsub dword [ebp + 4]
mov word [esp + 0x50], ax
movsx edx, word [ebx + 0x1a]
mov dword [esp + 0x1c], edx
fmul dword [0x612324]
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 1
jne 0x4b5986
or byte [esp + 0x52], 1
jmp 0x4b598b
and byte [esp + 0x52], 0xfe
mov al, byte [ebp + 8]
test al, al
je 0x4b5999
or byte [esp + 0x52], 4
jmp 0x4b599e
and byte [esp + 0x52], 0xfb
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
test eax, eax
jge 0x4b59bb
xor eax, eax
jmp 0x4b59f1
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
cmp eax, 0x64
jle 0x4b59dc
mov eax, 0x64
jmp 0x4b59f1
fld dword [ebp + 4]
push ecx
fmul dword [0x612324]
fstp dword [esp]
call fcn.004aea90
add esp, 4
mov ecx, 0x64
sub ecx, eax
mov ax, word [esp + 0x52]
jne 0x4b5a05
or ax, 2
jmp 0x4b5a09
and ax, 0xfffd
test ax, ax
jne 0x4b5a14
mov ax, 8
jmp 0x4b5a18
and ax, 0xfff7
mov di, word [ebp + 0x1c]
or ax, 0x10
mov word [esp + 0x52], ax
cmp di, word [ebx + 0x14]
jg 0x4b5a3d
mov al, byte [ebp + 0x16]
test al, al
jne 0x4b5a3d
mov ax, word [esp + 0x4c]
or ax, 1
jmp 0x4b5a46
mov ax, word [esp + 0x4c]
and ax, 0xfffe
mov cl, byte [ebp + 0x16]
test cl, cl
je 0x4b5a53
or ax, 4
jmp 0x4b5a57
and ax, 0xfffb
test di, di
jne 0x4b5a62
or ax, 2
jmp 0x4b5a66
and ax, 0xfffd
test ax, ax
jne 0x4b5a71
mov ax, 8
jmp 0x4b5a75
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 0x4b5a93
or ax, 1
jmp 0x4b5a97
and ax, 0xfffe
test cl, cl
je 0x4b5aa1
or ax, 4
jmp 0x4b5aa5
and ax, 0xfffb
test si, si
jne 0x4b5ab0
or ax, 2
jmp 0x4b5ab4
and ax, 0xfffd
test ax, ax
jne 0x4b5abf
mov ax, 8
jmp 0x4b5ac3
and ax, 0xfff7
fld dword [ebp]
mov dx, word [ebp + 0x12]
fmul dword [0x6122c0]
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.005de054
fld dword [0x612224]
fsub dword [ebp + 4]
mov word [esp + 0x60], ax
fmul dword [0x612324]
call fcn.005de054
mov ecx, dword [0x64c2c4]
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 0x4b5b81
mov edi, edx
sar edi, 0x10
test dx, dx
jl 0x4b5b81
mov ecx, dword [0x7fb2d0]
cmp dx, word [ecx + 0x20]
jge 0x4b5b81
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 0x4b5b81
test di, di
je 0x4b5b68
cmp cx, di
jne 0x4b5b81
mov cl, byte [eax + 3]
mov edi, 1
shl edi, cl
test edi, edi
je 0x4b5b81
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b5b81
mov ebp, edx
jmp 0x4b5b84
or ebp, 0xffffffff
cmp dword [esi + 0x3c], 0x3f800000
jne 0x4b5c3d
cmp ebp, 0xffffffff
je 0x4b5c3d
mov eax, dword [esp + 0x94]
cmp ax, 0xffff
je 0x4b5bb9
mov edx, dword [0x8154d8]
movsx eax, ax
mov eax, dword [edx + eax*4 + 4]
cmp eax, 0xffffffff
jne 0x4b5bbe
or eax, 0xffffffff
jmp 0x4b5bd3
mov ecx, dword [0x8154e0]
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.0056c900
lea eax, [esp + 0x24]
mov ecx, ebp
call fcn.004fa3b0
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 [0x612970]
fstp dword [esp + 0x84]
fld dword [esp + 0x2c]
fsub dword [esp + 0x38]
fmul dword [0x612970]
fstp dword [esp + 0x88]
jmp 0x4b5c50
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 0x4b5c88
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.004b54b0
add esp, 0x1c
mov edx, dword [0x6e218c]
mov eax, dword [0x8154d8]
mov ax, word [eax + 0xc]
xor ecx, ecx
cmp word [edx + 0x3c], 2
setne cl
cmp ax, 1
jne 0x4b5cac
or ecx, 2
jmp 0x4b5caf
and ecx, 0xfffffffd
cmp ax, 1
jle 0x4b5cba
or ecx, 4
jmp 0x4b5cbd
and ecx, 0xfffffffb
mov eax, dword [ebx + 0x60]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x4b5d3d
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 0x4b5ceb
mov dword [eax + 0x60], 0x3f800000
cmp dword [eax + 0x6c], ebp
jne 0x4b5cf7
mov dword [eax + 0x6c], 0x3f800000
test byte [eax + 2], 1
jne 0x4b5d32
mov cl, byte [eax + 4]
mov edx, 1
shl edx, cl
movsx ecx, word [esp + 0x10]
test ecx, edx
je 0x4b5d32
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.004afbf0
add esp, 0x14
mov ecx, dword [ebx + 0x60]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x4b5cd1
mov eax, dword [ebx + 0x6c]
xor edi, edi
test eax, eax
jle 0x4b5dab
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 0x4b5da0
mov cl, byte [edx + 4]
mov eax, 1
shl eax, cl
movsx ecx, word [esp + 0x10]
test ecx, eax
je 0x4b5da0
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.004af0c0
add esp, 0x18
mov ecx, dword [ebx + 0x6c]
inc edi
movsx eax, di
cmp eax, ecx
jl 0x4b5d50
mov eax, dword [ebx + 0x78]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x4b5ee6
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 0x4b5ecf
mov cl, byte [esi + 4]
movsx eax, word [esp + 0x10]
mov edx, 1
shl edx, cl
test eax, edx
je 0x4b5ecf
test byte [esi + 0x78], 1
mov edi, 1
je 0x4b5e0a
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x4f4]
mov di, word [edx + 0xa]
mov al, byte [esi + 0x6a]
test al, al
je 0x4b5e94
movsx ebp, word [esi]
mov eax, dword [esp + ebp*4 + 0x6c]
cmp eax, 0xffc00000
lea ebp, [esp + ebp*4 + 0x6c]
je 0x4b5ecf
fld qword [0x612268]
fld qword [0x6124a0]
call fcn.005cd390
fst dword [esp + 0x18]
fmul dword [ebp]
fabs
fld dword [esp + 0x18]
call fcn.005ce01a
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.004aea90
add esp, 4
jmp 0x4b5eb6
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.004af5b0
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 0x4b5dc0
mov eax, dword [ebx + 0x90]
xor esi, esi
test eax, eax
jle 0x4b5f6d
xor eax, eax
jmp 0x4b5f00
mov edx, dword [ebx + 0x94]
imul eax, eax, 0x68
mov cl, byte [eax + edx + 2]
add eax, edx
test cl, 1
jne 0x4b5f5f
mov cl, byte [eax + 4]
mov edx, 1
shl edx, cl
movsx ecx, word [esp + 0x10]
test ecx, edx
je 0x4b5f5f
mov edx, dword [0x8154d8]
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.004afe50
add esp, 0x18
mov ecx, dword [ebx + 0x90]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x4b5f00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret