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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x546190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x19220]
mov edx, dword [esi + 0x19230]
push edi
push ecx
lea edi, [esi + 0x44]
push edi
push 0x20
push 0x20
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xc4], edi
call fcn.004f0e30
mov eax, dword [esi + 0x19230]
add eax, eax
add eax, eax
push eax
mov ecx, edi
call fcn.004f0b90
fldz
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x19228]
test eax, eax
je 0x4ebcfc
mov ecx, 0xfffe
fst dword [eax + 0x44]
and word [eax + 4], cx
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x4ebce9
mov eax, dword [esi + 0x19214]
fstp st(0)
mov ecx, 0xfffffff3
test eax, eax
je 0x4ebd1a
lea ecx, [ecx]
and dword [eax + 4], ecx
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4ebd10
mov esi, dword [esi + 0x1922c]
test esi, esi
je 0x4ebd30
mov byte [esi + 0x38], 0
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4ebd24
nop
mov edx, dword [ebp - 0x44]
fld1
mov esi, dword [edx + 0x19214]
fstp dword [ebp - 0x38]
mov dword [ebp - 0x34], 0
test esi, esi
je 0x4ec5c2
lea ecx, [ecx]
mov eax, dword [esi + 4]
test al, 1
jne 0x4ebe72
test al, 0x20
je 0x4ebe72
test al, 2
je 0x4ebe72
test al, 8
je 0x4ebd7d
fld dword [esi + 0x78]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
jmp 0x4ebe4f
mov eax, dword [esi + 0x30]
mov edi, dword [eax + 0x18]
cmp dword [edi], 2
mov ecx, dword [esi + 0x34]
mov ebx, dword [ecx + 0x18]
jne 0x4ebd94
test byte [edi + 4], 2
jne 0x4ebda7
cmp dword [ebx], 2
jne 0x4ebe72
test byte [ebx + 4], 2
je 0x4ebe72
fld dword [edi + 0x44]
fstp dword [ebp - 0x2c]
fld dword [edi + 0x44]
fld dword [ebx + 0x44]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ebdc5
fld dword [ebx + 0x44]
push ecx
lea ecx, [edi + 0x24]
jmp 0x4ebddb
fld dword [ebx + 0x44]
fld dword [edi + 0x44]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ebde9
fld dword [edi + 0x44]
push ecx
lea ecx, [ebx + 0x24]
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x2c]
fstp dword [esp]
call fcn.004eb390
add ebx, 0x24
push ebx
add edi, 0x24
push edi
mov ecx, esi
call fcn.004f3de0
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
fcom qword [0x533c68]
fnstsw ax
test ah, 0x41
jne 0x4ebe48
fld1
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4ebe46
fld st(1)
fld1
fsubrp st(1)
fmul dword [ebp - 0x2c]
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4ebe3c
fstp st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
jmp 0x4ebe48
fstp st(0)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
jmp 0x4ebe48
fstp st(0)
or dword [esi + 4], 8
fst dword [esi + 0x78]
fcom qword [0x511678]
fnstsw ax
test ah, 0x41
jne 0x4ebe70
fld dword [ebp - 0x38]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4ebe70
fstp dword [ebp - 0x38]
mov dword [ebp - 0x34], esi
jmp 0x4ebe72
fstp st(0)
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4ebd50
cmp dword [ebp - 0x34], esi
je 0x4ec5c2
fld dword [ebp - 0x38]
fcom qword [0x511680]
fnstsw ax
test ah, 0x41
je 0x4ec5c0
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x30]
mov ebx, dword [edx + 0x18]
mov eax, dword [eax + 0x34]
mov edx, dword [eax + 0x18]
mov ecx, 9
lea esi, [ebx + 0x24]
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x24]
mov ecx, 9
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
push ecx
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x2c], edx
fstp dword [esp]
call fcn.004eb390
mov ecx, dword [ebx + 0x2c]
fld dword [ebx + 0x3c]
mov edx, dword [ebx + 0x30]
fstp dword [ebp - 0x20]
mov dword [ebx + 0x34], ecx
fld dword [ebp - 0x20]
mov dword [ebx + 0x38], edx
fst dword [ebx + 0x40]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call sub.MSVCR100.dll__CIcos
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fstp dword [ebp - 0x30]
fld dword [ebp - 0x24]
call sub.MSVCR100.dll__CIsin
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x30]
fst dword [ebx + 0x14]
fld dword [ebp - 0x20]
fld st(0)
fchs
fstp dword [ebx + 0x1c]
fstp dword [ebx + 0x18]
fstp dword [ebx + 0x20]
fld dword [ebx + 0x1c]
fmul dword [ebx + 0x28]
fld dword [ebx + 0x24]
fmul dword [ebx + 0x14]
faddp st(1)
fstp dword [ebp - 0xdc]
fld dword [ebx + 0x18]
fmul dword [ebx + 0x24]
fld dword [ebx + 0x20]
fmul dword [ebx + 0x28]
faddp st(1)
fstp dword [ebp - 0xd8]
fld dword [ebx + 0x34]
fsub dword [ebp - 0xdc]
fstp dword [ebp - 0x84]
mov eax, dword [ebp - 0x84]
fld dword [ebx + 0x38]
mov dword [ebx + 0xc], eax
fsub dword [ebp - 0xd8]
fstp dword [ebp - 0x80]
mov ecx, dword [ebp - 0x80]
fld dword [ebp - 0x38]
push ecx
mov dword [ebx + 0x10], ecx
fstp dword [esp]
lea ecx, [edi + 0x24]
call fcn.004eb390
mov esi, edi
fld dword [esi + 0x3c]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
fst dword [esi + 0x40]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call sub.MSVCR100.dll__CIcos
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x24]
call sub.MSVCR100.dll__CIsin
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
fstp dword [ebp - 0x30]
fld dword [ebp - 0x20]
fst dword [esi + 0x14]
fld dword [ebp - 0x30]
fld st(0)
fchs
fstp dword [esi + 0x1c]
fstp dword [esi + 0x18]
fstp dword [esi + 0x20]
fld dword [esi + 0x14]
fmul dword [edi + 0x24]
fld dword [esi + 0x1c]
fmul dword [edi + 0x28]
faddp st(1)
fstp dword [ebp - 0xe4]
fld dword [esi + 0x18]
fmul dword [edi + 0x24]
fld dword [esi + 0x20]
fmul dword [edi + 0x28]
faddp st(1)
fstp dword [ebp - 0xe0]
fld dword [esi + 0x34]
fsub dword [ebp - 0xe4]
fstp dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa0]
fld dword [esi + 0x38]
mov dword [esi + 0xc], ecx
fsub dword [ebp - 0xe0]
fstp dword [ebp - 0x9c]
mov edx, dword [ebp - 0x9c]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x19220]
mov esi, dword [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.004f3ab0
and dword [esi + 4], 0xfffffff7
mov eax, dword [esi + 4]
test al, 1
jne 0x4ec469
test al, 0x20
je 0x4ec469
test al, 0x10
je 0x4ebd30
cmp dword [ebx], 2
je 0x4ec076
mov ebx, edi
mov edx, dword [ebp - 0x40]
fldz
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
mov dword [edx], ebx
mov edx, 1
or word [ebx + 4], dx
mov dword [ebp - 0x24], edx
jmp 0x4ec09e
mov eax, dword [ebp - 0x34]
mov edx, 1
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + eax*4]
sub dword [ebp - 0x24], edx
add eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x60]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x74]
mov dword [esi + eax*4], ecx
add dword [ebp - 0x60], edx
movzx eax, word [ecx + 4]
mov dword [ebp - 0x28], ecx
test al, 2
jne 0x4ec0d6
or eax, 2
fst dword [ecx + 0x98]
mov word [ecx + 4], ax
cmp dword [ecx], 2
jne 0x4ec390
mov ebx, dword [ecx + 0x78]
test ebx, ebx
je 0x4ec23e
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
lea edx, [eax + edx*4]
mov dword [ebp - 0x20], edx
mov edi, 1
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x50]
je 0x4ec23e
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test al, 5
jne 0x4ec233
test al, 0x20
je 0x4ec233
test al, 0x10
je 0x4ec233
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x70]
mov dword [esi + edx*4], eax
add dword [ebp - 0x58], edi
mov eax, dword [ebx + 4]
or dword [eax + 4], 4
mov esi, dword [ebx]
test byte [esi + 4], 1
jne 0x4ec233
cmp dword [esi], 0
je 0x4ec221
fstp st(0)
push ecx
fld dword [ebp - 0x38]
lea ecx, [esi + 0x24]
fstp dword [esp]
call fcn.004eb390
fld dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
mov dword [esi + 0x34], ecx
fst dword [esi + 0x40]
mov dword [esi + 0x38], edx
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x2c]
call sub.MSVCR100.dll__CIcos
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x2c]
call sub.MSVCR100.dll__CIsin
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
mov edi, 1
fstp dword [ebp - 0x30]
fld dword [ebp - 0x3c]
fst dword [esi + 0x14]
fld dword [ebp - 0x30]
fld st(0)
fchs
fstp dword [esi + 0x1c]
fstp dword [esi + 0x18]
fstp dword [esi + 0x20]
fld dword [esi + 0x1c]
fmul dword [esi + 0x28]
fld dword [esi + 0x14]
fmul dword [esi + 0x24]
faddp st(1)
fstp dword [ebp - 0xcc]
fld dword [esi + 0x20]
fmul dword [esi + 0x28]
fld dword [esi + 0x18]
fmul dword [esi + 0x24]
faddp st(1)
fstp dword [ebp - 0xc8]
fld dword [esi + 0x34]
fsub dword [ebp - 0xcc]
fstp dword [ebp - 0xb0]
mov eax, dword [ebp - 0xb0]
fld dword [esi + 0x38]
or word [esi + 4], 2
fsub dword [ebp - 0xc8]
mov dword [esi + 0xc], eax
fstp dword [ebp - 0xac]
mov ecx, dword [ebp - 0xac]
fldz
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x28]
fst dword [esi + 0x98]
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x24], edi
mov dword [eax], esi
add eax, 4
or word [esi + 4], di
mov dword [ebp - 0x20], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x4ec0fe
mov edi, dword [ecx + 0x74]
test edi, edi
je 0x4ec390
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + edx*4]
mov dword [ebp - 0x2c], edx
mov ecx, 1
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x4c]
je 0x4ec385
mov edx, dword [edi + 4]
cmp byte [edx + 0x38], 1
je 0x4ec385
mov esi, dword [edi]
test byte [esi + 4], 0x20
je 0x4ec385
mov ebx, dword [ebp - 0x6c]
mov dword [ebx + eax*4], edx
add dword [ebp - 0x5c], ecx
mov eax, dword [edi + 4]
mov byte [eax + 0x38], 1
test byte [esi + 4], 1
jne 0x4ec385
cmp dword [esi], 0
je 0x4ec373
fstp st(0)
push ecx
fld dword [ebp - 0x38]
lea ecx, [esi + 0x24]
fstp dword [esp]
call fcn.004eb390
fld dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
mov dword [esi + 0x34], ecx
fst dword [esi + 0x40]
mov dword [esi + 0x38], edx
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
call sub.MSVCR100.dll__CIcos
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x20]
call sub.MSVCR100.dll__CIsin
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x3c]
fst dword [esi + 0x14]
fld dword [ebp - 0x28]
fld st(0)
fchs
fstp dword [esi + 0x1c]
fstp dword [esi + 0x18]
fstp dword [esi + 0x20]
fld dword [esi + 0x28]
fmul dword [esi + 0x1c]
fld dword [esi + 0x14]
fmul dword [esi + 0x24]
faddp st(1)
fstp dword [ebp - 0xd4]
fld dword [esi + 0x28]
fmul dword [esi + 0x20]
fld dword [esi + 0x24]
fmul dword [esi + 0x18]
faddp st(1)
fstp dword [ebp - 0xd0]
fld dword [esi + 0x34]
fsub dword [ebp - 0xd4]
fstp dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc0]
fld dword [esi + 0x38]
or word [esi + 4], 2
fsub dword [ebp - 0xd0]
mov dword [esi + 0xc], eax
fstp dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xbc]
fldz
mov dword [esi + 0x10], ecx
fst dword [esi + 0x98]
mov ecx, 1
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x24], ecx
mov dword [eax], esi
add eax, 4
or word [esi + 4], cx
mov dword [ebp - 0x2c], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4ec25d
cmp dword [ebp - 0x24], 0
jg 0x4ec096
fld dword [ebp - 0x38]
mov eax, dword [ebp - 0x90]
fld1
mov edx, dword [eax + 0xc]
fld st(0)
lea ecx, [ebp - 0x1c]
fsubrp st(2)
push ecx
fld dword [eax]
lea ecx, [ebp - 0x7c]
mov eax, dword [eax + 0x10]
mov byte [ebp - 8], 0
fmulp st(2)
mov dword [ebp - 0x10], edx
fxch st(1)
mov dword [ebp - 0xc], eax
fstp dword [ebp - 0x1c]
fdiv dword [ebp - 0x1c]
fstp dword [ebp - 0x18]
fstp dword [ebp - 0x14]
call fcn.004f1590
xor edi, edi
cmp dword [ebp - 0x60], edi
jle 0x4ec423
lea ebx, [edi - 9]
mov edx, dword [ebp - 0x74]
mov esi, dword [edx + edi*4]
mov eax, 0xfffe
and word [esi + 4], ax
test byte [esi + 4], 2
je 0x4ec41d
cmp dword [esi], 0
je 0x4ec41d
mov ecx, esi
call fcn.004ec820
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4ec41d
lea esp, [esp]
mov ecx, dword [eax + 4]
and dword [ecx + 4], ebx
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4ec410
inc edi
cmp edi, dword [ebp - 0x60]
jl 0x4ec3e1
xor eax, eax
cmp dword [ebp - 0x58], eax
jle 0x4ec43f
mov edx, 0xfffffff3
nop
mov ecx, dword [ebp - 0x70]
mov ecx, dword [ecx + eax*4]
and dword [ecx + 4], edx
inc eax
cmp eax, dword [ebp - 0x58]
jl 0x4ec430
xor eax, eax
cmp dword [ebp - 0x5c], eax
jle 0x4ec456
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edx + eax*4]
inc eax
mov byte [ecx + 0x38], 0
cmp eax, dword [ebp - 0x5c]
jl 0x4ec446
mov ecx, dword [ebp - 0x44]
add ecx, 0x191d8
call fcn.004f27a0
jmp 0x4ebd30
mov ecx, 9
lea esi, [ebp - 0x108]
lea edi, [ebx + 0x24]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2c]
mov ecx, 9
lea esi, [ebp - 0x12c]
add edi, 0x24
rep movsd dword es:[edi], dword [esi]
fld dword [ebx + 0x40]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
call sub.MSVCR100.dll__CIcos
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x20]
call sub.MSVCR100.dll__CIsin
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x3c]
fst dword [ebx + 0x14]
fld dword [ebp - 0x28]
fld st(0)
fchs
fstp dword [ebx + 0x1c]
fstp dword [ebx + 0x18]
fstp dword [ebx + 0x20]
fld dword [ebx + 0x1c]
fmul dword [ebx + 0x28]
fld dword [ebx + 0x24]
fmul dword [ebx + 0x14]
faddp st(1)
fstp dword [ebp - 0x8c]
fld dword [ebx + 0x18]
fmul dword [ebx + 0x24]
fld dword [ebx + 0x20]
fmul dword [ebx + 0x28]
faddp st(1)
fstp dword [ebp - 0x88]
fld dword [ebx + 0x34]
fsub dword [ebp - 0x8c]
fstp dword [ebp - 0x98]
mov edx, dword [ebp - 0x98]
fld dword [ebx + 0x38]
mov dword [ebx + 0xc], edx
fsub dword [ebp - 0x88]
fstp dword [ebp - 0x94]
mov eax, dword [ebp - 0x94]
mov dword [ebx + 0x10], eax
fld dword [esi + 0x40]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
call sub.MSVCR100.dll__CIcos
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x20]
call sub.MSVCR100.dll__CIsin
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x3c]
fst dword [esi + 0x14]
fld dword [ebp - 0x28]
fld st(0)
fchs
fstp dword [esi + 0x1c]
fstp dword [esi + 0x18]
fstp dword [esi + 0x20]
fld dword [esi + 0x14]
fmul dword [esi + 0x24]
fld dword [esi + 0x1c]
fmul dword [esi + 0x28]
faddp st(1)
fstp dword [ebp - 0xa8]
fld dword [esi + 0x18]
fmul dword [esi + 0x24]
fld dword [esi + 0x20]
fmul dword [esi + 0x28]
faddp st(1)
fstp dword [ebp - 0xa4]
fld dword [esi + 0x34]
fsub dword [ebp - 0xa8]
fstp dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb8]
fld dword [esi + 0x38]
mov dword [esi + 0xc], ecx
fsub dword [ebp - 0xa4]
fstp dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb4]
mov dword [esi + 0x10], edx
jmp 0x4ebd30
fstp st(0)
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc4]
push eax
call fcn.004f0b40
lea ecx, [ebp - 0x7c]
call fcn.004f0ed0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret 4