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

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x80]
mov ecx, dword [0x87b7b4]
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 [0x719358]
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 0x4b21ac
mov esi, dword [esp + 0xa0]
cmp esi, eax
je 0x4b21ac
mov edx, dword [esp + 0xa4]
cmp edx, eax
je 0x4b21ac
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x4b21ac
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 0x4b2820
mov cx, word [ebp + 0x12]
cmp cx, word [ebx + 0x14]
mov esi, 1
jg 0x4b21c0
or ax, si
jmp 0x4b21c4
and ax, 0xfffe
test cx, cx
jne 0x4b21cf
or ax, 2
jmp 0x4b21d3
and ax, 0xfffd
mov edx, dword [0x87a018]
mov cx, word [edx + 0xc]
cmp cx, si
jle 0x4b21e8
or ax, 4
jmp 0x4b21ec
and ax, 0xfffb
mov word [esp + 0x3c], ax
mov ax, word [ebp + 0xe]
cmp ax, word [ebx + 0x16]
jg 0x4b220c
mov al, byte [ebp + 0xc]
test al, al
jne 0x4b220c
mov ax, word [esp + 0x3e]
or ax, si
jmp 0x4b2215
mov ax, word [esp + 0x3e]
and ax, 0xfffe
and ax, 0xfffd
cmp cx, si
jle 0x4b2224
or ax, 4
jmp 0x4b2228
and ax, 0xfffb
fld dword [ebp]
mov word [esp + 0x3e], ax
movsx edx, word [ebx + 0x18]
fmul dword [0x672bfc]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
mov ax, word [esp + 0x40]
jp 0x4b2255
or ax, si
jmp 0x4b2259
and ax, 0xfffe
and ax, 0xfffd
cmp cx, si
jle 0x4b2268
or ax, 4
jmp 0x4b226c
and ax, 0xfffb
fld dword [0x672afc]
mov word [esp + 0x40], ax
fsub dword [ebp + 4]
movsx eax, word [ebx + 0x1a]
mov dword [esp + 0x1c], eax
fmul dword [0x672bfc]
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 1
jne 0x4b229c
or word [esp + 0x42], si
jmp 0x4b22a1
and byte [esp + 0x42], 0xfe
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
test eax, eax
jge 0x4b22be
xor eax, eax
jmp 0x4b22f4
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
cmp eax, 0x64
jle 0x4b22df
mov eax, 0x64
jmp 0x4b22f4
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
mov ecx, 0x64
sub ecx, eax
jne 0x4b2304
or byte [esp + 0x42], 2
jmp 0x4b2309
and byte [esp + 0x42], 0xfd
mov ecx, dword [0x87a018]
cmp word [ecx + 0xc], si
jle 0x4b231c
or byte [esp + 0x42], 4
jmp 0x4b2321
and byte [esp + 0x42], 0xfb
mov ax, word [ebp + 0x1c]
cmp ax, word [ebx + 0x14]
jg 0x4b2332
or word [esp + 0x44], si
jmp 0x4b2337
and byte [esp + 0x44], 0xfe
test ax, ax
jne 0x4b2343
or byte [esp + 0x44], 2
jmp 0x4b2348
and byte [esp + 0x44], 0xfd
cmp word [ecx + 0xc], si
jle 0x4b2355
or byte [esp + 0x44], 4
jmp 0x4b235a
and byte [esp + 0x44], 0xfb
mov dx, word [ebp + 0x18]
cmp dx, word [ebx + 0x16]
jg 0x4b2372
mov al, byte [ebp + 0x16]
test al, al
jne 0x4b2372
or word [esp + 0x46], si
jmp 0x4b2377
and byte [esp + 0x46], 0xfe
and byte [esp + 0x46], 0xfd
cmp word [ecx + 0xc], si
jle 0x4b2389
or byte [esp + 0x46], 4
jmp 0x4b238e
and byte [esp + 0x46], 0xfb
mov esi, dword [0x6f1c94]
mov eax, edi
lea ecx, [esp + 0x3c]
mov edx, 8
nop
test byte [ecx], 1
je 0x4b23b1
cmp dword [eax], 0xffffffff
jne 0x4b23b7
mov edi, dword [esi + 0xc]
mov dword [eax], edi
jmp 0x4b23b7
mov dword [eax], 0xffffffff
add ecx, 2
add eax, 4
dec edx
jne 0x4b23a0
mov si, word [ebp + 0x12]
cmp si, word [ebx + 0x14]
jg 0x4b23dc
mov al, byte [ebp + 0xc]
test al, al
jne 0x4b23dc
mov ax, word [esp + 0x4c]
or ax, 1
jmp 0x4b23e5
mov ax, word [esp + 0x4c]
and ax, 0xfffe
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x4b23f2
or ax, 4
jmp 0x4b23f6
and ax, 0xfffb
test si, si
jne 0x4b2401
or ax, 2
jmp 0x4b2405
and ax, 0xfffd
test ax, ax
jne 0x4b2410
mov ax, 8
jmp 0x4b2414
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 0x4b2432
or ax, 1
jmp 0x4b2436
and ax, 0xfffe
test dl, dl
je 0x4b2440
or ax, 4
jmp 0x4b2444
and ax, 0xfffb
test cx, cx
jne 0x4b244f
or ax, 2
jmp 0x4b2453
and ax, 0xfffd
test ax, ax
jne 0x4b245e
mov ax, 8
jmp 0x4b2462
and ax, 0xfff7
fld dword [ebp]
or ax, 0x10
fmul dword [0x672bfc]
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 0x4b2490
or byte [esp + 0x50], 1
jmp 0x4b2495
and byte [esp + 0x50], 0xfe
mov al, byte [ebp + 8]
test al, al
je 0x4b24a3
or byte [esp + 0x50], 4
jmp 0x4b24a8
and byte [esp + 0x50], 0xfb
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
test eax, eax
jge 0x4b24c5
xor eax, eax
jmp 0x4b24fb
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
cmp eax, 0x64
jle 0x4b24e6
mov eax, 0x64
jmp 0x4b24fb
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
mov ecx, 0x64
sub ecx, eax
mov ax, word [esp + 0x50]
jne 0x4b250f
or ax, 2
jmp 0x4b2513
and ax, 0xfffd
test ax, ax
jne 0x4b251e
mov ax, 8
jmp 0x4b2522
and ax, 0xfff7
fld dword [0x672afc]
or ax, 0x10
fsub dword [ebp + 4]
mov word [esp + 0x50], ax
movsx edx, word [ebx + 0x1a]
mov dword [esp + 0x1c], edx
fmul dword [0x672bfc]
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 1
jne 0x4b2556
or byte [esp + 0x52], 1
jmp 0x4b255b
and byte [esp + 0x52], 0xfe
mov al, byte [ebp + 8]
test al, al
je 0x4b2569
or byte [esp + 0x52], 4
jmp 0x4b256e
and byte [esp + 0x52], 0xfb
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
test eax, eax
jge 0x4b258b
xor eax, eax
jmp 0x4b25c1
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
cmp eax, 0x64
jle 0x4b25ac
mov eax, 0x64
jmp 0x4b25c1
fld dword [ebp + 4]
push ecx
fmul dword [0x672bfc]
fstp dword [esp]
call fcn.004ab660
add esp, 4
mov ecx, 0x64
sub ecx, eax
mov ax, word [esp + 0x52]
jne 0x4b25d5
or ax, 2
jmp 0x4b25d9
and ax, 0xfffd
test ax, ax
jne 0x4b25e4
mov ax, 8
jmp 0x4b25e8
and ax, 0xfff7
mov di, word [ebp + 0x1c]
or ax, 0x10
mov word [esp + 0x52], ax
cmp di, word [ebx + 0x14]
jg 0x4b260d
mov al, byte [ebp + 0x16]
test al, al
jne 0x4b260d
mov ax, word [esp + 0x4c]
or ax, 1
jmp 0x4b2616
mov ax, word [esp + 0x4c]
and ax, 0xfffe
mov cl, byte [ebp + 0x16]
test cl, cl
je 0x4b2623
or ax, 4
jmp 0x4b2627
and ax, 0xfffb
test di, di
jne 0x4b2632
or ax, 2
jmp 0x4b2636
and ax, 0xfffd
test ax, ax
jne 0x4b2641
mov ax, 8
jmp 0x4b2645
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 0x4b2663
or ax, 1
jmp 0x4b2667
and ax, 0xfffe
test cl, cl
je 0x4b2671
or ax, 4
jmp 0x4b2675
and ax, 0xfffb
test si, si
jne 0x4b2680
or ax, 2
jmp 0x4b2684
and ax, 0xfffd
test ax, ax
jne 0x4b268f
mov ax, 8
jmp 0x4b2693
and ax, 0xfff7
fld dword [ebp]
mov dx, word [ebp + 0x12]
fmul dword [0x672b98]
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.006392c4
fld dword [0x672afc]
fsub dword [ebp + 4]
mov word [esp + 0x60], ax
fmul dword [0x672bfc]
call fcn.006392c4
mov ecx, dword [0x6b1384]
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 0x4b2751
mov edi, edx
sar edi, 0x10
test dx, dx
jl 0x4b2751
mov ecx, dword [0x85ff50]
cmp dx, word [ecx + 0x20]
jge 0x4b2751
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 0x4b2751
test di, di
je 0x4b2738
cmp cx, di
jne 0x4b2751
mov cl, byte [eax + 3]
mov edi, 1
shl edi, cl
test edi, edi
je 0x4b2751
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b2751
mov ebp, edx
jmp 0x4b2754
or ebp, 0xffffffff
cmp dword [esi + 0x3c], 0x3f800000
jne 0x4b280d
cmp ebp, 0xffffffff
je 0x4b280d
mov eax, dword [esp + 0x94]
cmp ax, 0xffff
je 0x4b2789
mov edx, dword [0x87a018]
movsx eax, ax
mov eax, dword [edx + eax*4 + 4]
cmp eax, 0xffffffff
jne 0x4b278e
or eax, 0xffffffff
jmp 0x4b27a3
mov ecx, dword [0x87a020]
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.005693b0
lea eax, [esp + 0x24]
mov ecx, ebp
call fcn.004f6aa0
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 [0x673248]
fstp dword [esp + 0x84]
fld dword [esp + 0x2c]
fsub dword [esp + 0x38]
fmul dword [0x673248]
fstp dword [esp + 0x88]
jmp 0x4b2820
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 0x4b2858
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.004b2080
add esp, 0x1c
mov edx, dword [0x746eac]
mov eax, dword [0x87a018]
mov ax, word [eax + 0xc]
xor ecx, ecx
cmp word [edx + 0x3c], 2
setne cl
cmp ax, 1
jne 0x4b287c
or ecx, 2
jmp 0x4b287f
and ecx, 0xfffffffd
cmp ax, 1
jle 0x4b288a
or ecx, 4
jmp 0x4b288d
and ecx, 0xfffffffb
mov eax, dword [ebx + 0x60]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x4b290d
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 0x4b28bb
mov dword [eax + 0x60], 0x3f800000
cmp dword [eax + 0x6c], ebp
jne 0x4b28c7
mov dword [eax + 0x6c], 0x3f800000
test byte [eax + 2], 1
jne 0x4b2902
mov cl, byte [eax + 4]
mov edx, 1
shl edx, cl
movsx ecx, word [esp + 0x10]
test ecx, edx
je 0x4b2902
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.004ac7c0
add esp, 0x14
mov ecx, dword [ebx + 0x60]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x4b28a1
mov eax, dword [ebx + 0x6c]
xor edi, edi
test eax, eax
jle 0x4b297b
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 0x4b2970
mov cl, byte [edx + 4]
mov eax, 1
shl eax, cl
movsx ecx, word [esp + 0x10]
test ecx, eax
je 0x4b2970
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.004abc90
add esp, 0x18
mov ecx, dword [ebx + 0x6c]
inc edi
movsx eax, di
cmp eax, ecx
jl 0x4b2920
mov eax, dword [ebx + 0x78]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x4b2ab6
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 0x4b2a9f
mov cl, byte [esi + 4]
movsx eax, word [esp + 0x10]
mov edx, 1
shl edx, cl
test eax, edx
je 0x4b2a9f
test byte [esi + 0x78], 1
mov edi, 1
je 0x4b29da
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x4f4]
mov di, word [edx + 0xa]
mov al, byte [esi + 0x6a]
test al, al
je 0x4b2a64
movsx ebp, word [esi]
mov eax, dword [esp + ebp*4 + 0x6c]
cmp eax, 0xffc00000
lea ebp, [esp + ebp*4 + 0x6c]
je 0x4b2a9f
fld qword [0x672b40]
fld qword [0x672d78]
call fcn.00628600
fst dword [esp + 0x18]
fmul dword [ebp]
fabs
fld dword [esp + 0x18]
call fcn.00628f0a
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.004ab660
add esp, 4
jmp 0x4b2a86
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.004ac180
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 0x4b2990
mov eax, dword [ebx + 0x90]
xor esi, esi
test eax, eax
jle 0x4b2b3d
xor eax, eax
jmp 0x4b2ad0
mov edx, dword [ebx + 0x94]
imul eax, eax, 0x68
mov cl, byte [eax + edx + 2]
add eax, edx
test cl, 1
jne 0x4b2b2f
mov cl, byte [eax + 4]
mov edx, 1
shl edx, cl
movsx ecx, word [esp + 0x10]
test ecx, edx
je 0x4b2b2f
mov edx, dword [0x87a018]
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.004aca20
add esp, 0x18
mov ecx, dword [ebx + 0x90]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x4b2ad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret