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

Disassembly:
sub esp, 0x194
fld dword [esp + 0x1a8]
push ebx
fsin
mov ebx, dword [esp + 0x1a4]
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x1a4]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x50]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 0x54]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x58]
push edi
mov edi, ecx
mov cx, word [esp + 0x1ac]
cmp cx, 0xffff
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 0x5c]
mov eax, dword [eax + 0x60]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
fstp dword [esp + 0x28]
fld dword [esp + 0x1b8]
fcos
fstp dword [esp + 0x10]
jne 0x4b05d2
or eax, 0xffffffff
jmp 0x4b05df
mov edx, dword [0x8154d8]
movsx ecx, cx
mov eax, dword [edx + ecx*4 + 4]
mov edx, dword [0x8154e0]
lea ecx, [esp + 0x124]
and eax, 0xffff
push ecx
mov ecx, dword [edx + 0x34]
shl eax, 9
add eax, ecx
call fcn.004b03f0
add esp, 4
xor ecx, ecx
mov edx, 1
lea eax, [esp + 0x148]
jmp 0x4b0620
mov ebx, dword [esp + 0x1b0]
lea esp, [esp]
mov ebp, edx
and ebp, 2
je 0x4b062c
mov ebx, dword [ebx + 4]
jmp 0x4b062e
mov ebx, dword [ebx]
cmp cx, 1
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x1b0]
jle 0x4b0644
mov ebx, dword [ebx + 0xc]
jmp 0x4b0647
mov ebx, dword [ebx + 8]
test ebp, ebp
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1b4]
je 0x4b065b
mov ebp, dword [ebx + 4]
jmp 0x4b065d
mov ebp, dword [ebx]
cmp cx, 1
mov dword [esp + 0x14], ebp
jle 0x4b066c
mov ebx, dword [ebx + 0xc]
jmp 0x4b066f
mov ebx, dword [ebx + 8]
fld dword [esp + 0x14]
mov dword [esp + 0x18], ebx
fmul dword [esp + 0x10]
fld dword [esp + 0x18]
fmul dword [esp + 0x28]
fsubp st(1)
fmul dword [esi]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fistp dword [esp + 0x30]
movsx ebx, word [edi]
add ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
fild dword [esp + 0x24]
fstp dword [eax - 4]
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
fld dword [esp + 0x14]
fmul dword [esp + 0x28]
faddp st(1)
fmul dword [esi + 4]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fistp dword [esp + 0x1c]
movsx ebx, word [edi + 2]
add ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x2c]
fild dword [esp + 0x24]
mov dword [eax + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + 0x10], ebx
mov ebx, dword [esp + 0x1bc]
fstp dword [eax]
inc ecx
mov dword [eax + 4], 0
mov dword [eax + 8], ebx
inc edx
add eax, 0x18
cmp cx, 4
jl 0x4b0612
mov ebx, dword [esp + 0x1a8]
xor eax, eax
mov ecx, 0x23
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov eax, dword [0x8154d8]
xor ebp, ebp
mov dword [esp + 0xdc], 0x3f800000
mov dword [esp + 0xd8], 0x3f800000
mov dword [esp + 0xc4], 0x3f800000
mov dword [esp + 0xc0], 0x3f800000
mov dword [esp + 0x98], ebp
cmp word [eax + 0xc], 1
mov eax, dword [ebx + 0x70]
sete cl
push ebp
xor edi, edi
mov byte [esp + 0x126], cl
call fcn.0043f2a0
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x80]
push ebp
call fcn.0043f2a0
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 0x90]
push ebp
call fcn.0043f2a0
lea edx, [esp + 0xbc]
mov dword [esp + 0x24], edx
lea edx, [esp + 0xac]
sub edx, ebx
mov dword [esp + 0x2c], edx
lea edx, [esp + 0xb0]
sub edx, ebx
mov dword [esp + 0xb8], eax
lea eax, [ebx + 0x2e]
add esp, 0xc
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
lea ecx, [ebx + 0x38]
xor edx, edx
jmp 0x4b07e0
mov esi, dword [esp + edx + 0xa4]
test esi, esi
je 0x4b08bc
fld dword [0x612220]
fld dword [ecx - 4]
fucompp
fld dword [0x612224]
fnstsw ax
test ah, 0x44
jnp 0x4b080a
fdiv dword [ecx - 4]
fld dword [0x612220]
fld dword [ecx]
fucompp
fld dword [0x612224]
fnstsw ax
test ah, 0x44
jnp 0x4b0823
fdiv dword [ecx]
movsx eax, word [esi + 4]
lea ebx, [eax - 1]
test eax, ebx
jne 0x4b0839
movsx eax, word [esi + 6]
lea ebx, [eax - 1]
test eax, ebx
je 0x4b0874
movsx eax, word [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
fild dword [esp + 0x1c]
fdivr dword [0x612224]
fstp dword [eax + ecx]
mov eax, dword [esp + edx + 0xa4]
movsx eax, word [eax + 6]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x1c]
fdivr dword [0x612224]
fstp dword [eax + ecx]
jmp 0x4b088a
mov eax, dword [esp + 0x20]
mov dword [eax + ecx], 0x3f800000
mov eax, dword [esp + 0x2c]
mov dword [eax + ecx], 0x3f800000
mov esi, dword [esp + 0x18]
fxch st(1)
lea eax, [esp + edi + 0x80]
mov dword [esp + edx + 0xb4], eax
fstp dword [esp + edi + 0xc0]
mov eax, dword [esp + 0x28]
mov bl, byte [eax + 0x66]
fstp dword [esp + edi + 0xc4]
mov byte [esi], bl
mov ebx, dword [esp + 0x1a8]
cmp bp, 2
jge 0x4b091e
lea esi, [esp + 0x11c]
mov dword [esp + 0x30], esi
lea esi, [esp + 0x11e]
mov dword [esp + 0x34], esi
movsx esi, word [eax]
cmp esi, 4
ja case.default.0x4b08e0
jmp dword [esi*4 + 0x4b0d8c]
mov esi, dword [esp + edx + 0x30]
mov word [esi], 0
jmp case.default.0x4b08e0
mov esi, dword [esp + edx + 0x30]
mov word [esi], 2
jmp case.default.0x4b08e0
mov esi, dword [esp + edx + 0x30]
mov word [esi], 1
jmp case.default.0x4b08e0
mov esi, dword [esp + edx + 0x30]
mov word [esi], 3
jmp case.default.0x4b08e0
mov esi, dword [esp + edx + 0x30]
mov word [esi], 4
jmp case.default.0x4b08e0
mov si, word [ebx + 4]
mov word [esp + 0x120], si
mov esi, dword [esp + 0x18]
add eax, 2
inc ebp
add ecx, 8
add edi, 8
inc esi
add edx, 4
cmp bp, 3
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
jl 0x4b07e0
mov eax, dword [ebx + 0x154]
test eax, eax
mov dword [esp + 0x20], 0
jle 0x4b0d68
mov bp, word [esp + 0x1ac]
xor esi, esi
mov edi, edi
mov edx, dword [ebx + 0x158]
fld dword [0x6b43f0]
imul esi, esi, 0xdc
fadd dword [0x612348]
fstp dword [0x6b43f0]
movsx eax, word [esi + edx + 0x44]
add esi, edx
cmp eax, 7
ja case.default.0x4b099e
jmp dword [eax*4 + 0x4b0da0]
cmp bp, 0xffff
je 0x4b09bd
mov edx, dword [0x8154d8]
movsx ecx, bp
mov eax, dword [edx + ecx*4 + 4]
cmp eax, 0xffffffff
jne 0x4b09c2
or eax, 0xffffffff
jmp 0x4b09d7
mov ecx, dword [0x8154e0]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
shl eax, 9
mov eax, dword [eax + edx + 0x34]
mov ecx, dword [0x7fb2d0]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
add eax, 0x23c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
fld dword [esp + 0x38]
fld dword [esp + 0x30]
mov dword [esp + 0x34], edx
fmul dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fsqrt
fxch st(1)
fxch st(1)
fpatan
jmp 0x4b0a8d
mov dword [esp + 0x14], 0
jmp case.default.0x4b099e
movsx ecx, word [esp + 0x132]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
jmp 0x4b0a8d
movsx edx, word [esp + 0x136]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
jmp 0x4b0a8d
mov eax, dword [esp + 0x124]
mov dword [esp + 0x14], eax
jmp case.default.0x4b099e
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x14], ecx
jmp case.default.0x4b099e
or eax, 0xffffffff
cmp bp, 0xffff
je 0x4b0a82
mov eax, dword [0x64c2c4]
movsx edx, bp
shl edx, 6
mov ax, word [edx + eax + 0x34]
movsx ecx, ax
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fstp dword [esp + 0x14]
fld dword [esi + 0x48]
fld dword [esi + 0x4c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4b0b67
fld dword [esi + 0x50]
fld dword [esi + 0x54]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4b0b67
fld dword [esp + 0x14]
fsub dword [esi + 0x48]
fld dword [esi + 0x4c]
fsub dword [esi + 0x48]
fdivp st(1)
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x4b0add
mov dword [esp + 0x18], 0
jmp 0x4b0b16
fld dword [esp + 0x14]
fsub dword [esi + 0x48]
fld dword [esi + 0x4c]
fsub dword [esi + 0x48]
fdivp st(1)
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x4b0b03
mov dword [esp + 0x18], 0x3f800000
jmp 0x4b0b16
fld dword [esp + 0x14]
fsub dword [esi + 0x48]
fld dword [esi + 0x4c]
fsub dword [esi + 0x48]
fdivp st(1)
fstp dword [esp + 0x18]
fld dword [0x612224]
mov edx, dword [esp + 0x18]
fsub dword [esp + 0x18]
push edx
lea edx, [esp + 0x78]
push 0
fmul dword [esi + 0x50]
fld dword [esp + 0x20]
lea eax, [esi + 0xa4]
fmul dword [esi + 0x54]
lea ecx, [esi + 0x98]
push edx
faddp st(1)
fstp dword [esp + 0x1c]
call fcn.0043f6b0
mov edi, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
add esp, 0xc
jmp 0x4b0b8a
mov eax, dword [esi + 0x50]
mov dword [esp + 0x10], eax
lea ecx, [esi + 0x98]
mov eax, ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edi
movsx eax, word [esi + 0x42]
cmp eax, 3
ja case.default.0x4b0b97
jmp dword [eax*4 + 0x4b0dc0]
cmp word [esi + 0x40], 1
jne 0x4b0baf
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
jmp 0x4b0bb7
mov dword [esp + 0x3c], 0
cmp word [esi + 0x40], 2
jne 0x4b0bd6
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x9c], eax
jmp case.default.0x4b0b97
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x9c], eax
jmp case.default.0x4b0b97
mov si, word [esi + 0x40]
test si, si
jne 0x4b0c13
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0xf0], ecx
jmp case.default.0x4b0b97
cmp si, 1
jne 0x4b0c2d
mov eax, dword [esp + 0xb4]
fld dword [esp + 0x10]
fadd dword [eax]
fstp dword [eax]
jmp case.default.0x4b0b97
cmp si, 2
jne 0x4b0c49
mov eax, dword [esp + 0xb4]
fld dword [esp + 0x10]
fadd dword [eax + 4]
fstp dword [eax + 4]
jmp case.default.0x4b0b97
cmp si, 3
jne case.default.0x4b0b97
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], edx
mov dword [esp + 0x110], eax
jmp case.default.0x4b0b97
mov si, word [esi + 0x40]
test si, si
jne 0x4b0c90
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0xf4], ecx
jmp case.default.0x4b0b97
cmp si, 1
jne 0x4b0caa
mov eax, dword [esp + 0xb8]
fld dword [esp + 0x10]
fadd dword [eax]
fstp dword [eax]
jmp case.default.0x4b0b97
cmp si, 2
jne 0x4b0cc6
mov eax, dword [esp + 0xb8]
fld dword [esp + 0x10]
fadd dword [eax + 4]
fstp dword [eax + 4]
jmp case.default.0x4b0b97
cmp si, 3
jne case.default.0x4b0b97
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], edx
mov dword [esp + 0x114], eax
jmp case.default.0x4b0b97
mov si, word [esi + 0x40]
test si, si
jne 0x4b0d07
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edi
mov dword [esp + 0xf8], ecx
jmp case.default.0x4b0b97
cmp si, 1
jne 0x4b0d1e
mov eax, dword [esp + 0xbc]
fld dword [esp + 0x10]
fadd dword [eax]
fstp dword [eax]
jmp case.default.0x4b0b97
cmp si, 2
jne 0x4b0d37
mov eax, dword [esp + 0xbc]
fld dword [esp + 0x10]
fadd dword [eax + 4]
fstp dword [eax + 4]
jmp case.default.0x4b0b97
cmp si, 3
jne case.default.0x4b0b97
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x20]
inc eax
movsx esi, ax
mov dword [esp + 0x20], eax
cmp esi, dword [ebx + 0x154]
jl 0x4b0970
lea ecx, [esp + 0x144]
push ecx
lea eax, [esp + 0x9c]
call fcn.00520210
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x194
ret