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

Disassembly:
push 0xffffffffffffffff
push 0x591cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
mov ebx, dword [esp + 0x94]
fld dword [ebx + 0x3b0]
push ebp
push esi
mov esi, ecx
fsub dword [esi + 0x3b0]
push edi
mov dword [esp + 0x20], esi
fst dword [esp + 0x24]
fld dword [ebx + 0x3a8]
fsub dword [esi + 0x3a8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fstp st(2)
fstp st(0)
fcomp dword [0x5accf8]
fnstsw ax
test ah, 1
je 0x4ed49d
call fcn.004ef620
test eax, eax
je 0x4ed49d
mov ecx, dword [esi + 0x364]
call fcn.0050ff80
mov edi, eax
mov ecx, esi
mov dword [esp + 0x10], edi
call fcn.004eee00
fstp dword [esp + 0x28]
mov ebp, dword [edi + 0x20]
cmp ebp, dword [edi + 0x24]
mov dword [esp + 0x24], ebp
je 0x4ed49d
lea eax, [ebp + 0x28]
mov dword [esp + 0x1c], eax
jmp 0x4ed200
mov ebx, dword [esp + 0xa0]
lea ebx, [ebx]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esi + 0x488]
mov dword [esp + 0x34], ebp
call fcn.004eb9f0
mov eax, dword [esi + 0x48c]
mov edi, dword [esp + 0x30]
cmp edi, eax
je 0x4ed269
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
add edi, 0x10
push ecx
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.004f9470
mov ebx, dword [eax]
cmp ebx, dword [edi + 4]
je 0x4ed269
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x18], 2
je 0x4ed47c
mov ecx, esi
call fcn.004b5680
fcomp dword [ebx + 0x10]
fnstsw ax
test ah, 5
jnp 0x4ed47c
mov ecx, dword [0x5f203c]
call fcn.004b05d0
fsubr dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
fstp dword [esp + 0x30]
call fcn.004eb5c0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
mov ebx, eax
call fcn.004eb600
mov edi, eax
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.004f8170
fmul dword [0x5999b0]
mov ecx, esi
fcos
fstp dword [esp + 0x14]
call fcn.004f8170
cmp ebx, edi
fmul dword [0x5999b0]
fsin
fstp dword [esp + 0x18]
je 0x4ed47c
mov edi, edi
fld dword [ebx + 0x14]
lea ebp, [ebx + 0x10]
fsub dword [ebp + 0x10]
mov ecx, 7
mov esi, ebp
lea edi, [esp + 0x74]
fstp dword [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
fld dword [ebp]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x4c]
mov esi, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x8c], 0x41a00000
call fcn.004e8120
mov ecx, esi
fld dword [esp + 0x4c]
fmul st(1)
fld dword [esp + 0x2c]
fmul st(2)
fadd dword [ebp + 0x10]
fstp dword [esp + 0x2c]
fadd dword [ebp + 0xc]
fstp st(1)
fld dword [esp + 0x14]
fmul st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x18]
fsubp st(1)
fstp dword [esp + 0x74]
fmul dword [esp + 0x18]
fld dword [esp + 0x2c]
fmul dword [esp + 0x14]
faddp st(1)
fstp dword [esp + 0x78]
call fcn.004bf480
fld dword [esp + 0x74]
mov ecx, esi
fadd dword [eax]
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fadd dword [eax + 4]
fstp dword [esp + 0x78]
fld dword [esp + 0x7c]
fadd dword [eax + 8]
fstp dword [esp + 0x7c]
fld dword [esp + 0x14]
fmul dword [ebp + 0xc]
fld dword [esp + 0x18]
fmul dword [ebp + 0x10]
fsubp st(1)
fstp dword [esp + 0x80]
fld dword [esp + 0x14]
fmul dword [ebp + 0x10]
fld dword [esp + 0x18]
fmul dword [ebp + 0xc]
faddp st(1)
fstp dword [esp + 0x84]
call fcn.004bf480
fld dword [esp + 0x80]
mov ebp, dword [esp + 0xa0]
fadd dword [eax]
fstp dword [esp + 0x80]
fld dword [esp + 0x84]
fadd dword [eax + 4]
fstp dword [esp + 0x84]
fld dword [esp + 0x88]
fadd dword [eax + 8]
mov eax, dword [ebp + 0x278]
fstp dword [esp + 0x88]
mov esi, dword [eax]
cmp esi, eax
je 0x4ed422
lea esp, [esp]
mov edi, dword [esi + 0x1c]
cmp edi, dword [esi + 0x20]
je 0x4ed418
lea edx, [esp + 0x74]
push edi
push edx
call fcn.004f85b0
add esp, 8
test al, al
jne 0x4ed4ba
mov eax, dword [esi + 0x20]
add edi, 0x1c
cmp edi, eax
jne 0x4ed3f8
mov esi, dword [esi]
cmp esi, dword [ebp + 0x278]
jne 0x4ed3f0
mov al, byte [ebx + 0x2d]
test al, al
jne 0x4ed46a
mov eax, dword [ebx + 8]
mov cl, byte [eax + 0x2d]
test cl, cl
jne 0x4ed44d
mov ebx, eax
mov eax, dword [ebx]
mov cl, byte [eax + 0x2d]
test cl, cl
jne 0x4ed46a
mov edi, edi
mov ebx, eax
mov eax, dword [ebx]
mov cl, byte [eax + 0x2d]
test cl, cl
je 0x4ed440
jmp 0x4ed46a
mov eax, dword [ebx + 4]
mov cl, byte [eax + 0x2d]
test cl, cl
jne 0x4ed468
cmp ebx, dword [eax + 8]
jne 0x4ed468
mov ebx, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x2d]
test cl, cl
je 0x4ed457
mov ebx, eax
cmp ebx, dword [esp + 0x34]
jne 0x4ed2d0
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x24]
add ebp, 0x34
add edx, 0x34
cmp ebp, ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], edx
jne 0x4ed1f3
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 4
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x38], ecx
add ebx, 0x488
push eax
mov ecx, ebx
call fcn.004eb9f0
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x48c]
mov edi, dword [esp + 0x30]
cmp edi, eax
jne 0x4ed635
lea ecx, [esp + 0x4c]
call fcn.004f4da0
mov dword [esp + 0x50], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x50]
mov dword [eax], eax
mov eax, dword [esp + 0x50]
xor edi, edi
mov dword [eax + 8], eax
mov dword [esp + 0x54], edi
mov ecx, esi
mov dword [esp + 0x98], edi
call fcn.004b5680
mov ecx, dword [esp + 0x10]
fadd dword [ecx + 8]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x38]
push eax
fstp dword [esp + 0x50]
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], ebp
call fcn.004ec6a0
sub esp, 0xc
lea edx, [esp + 0x58]
mov dword [esp + 0x50], esp
mov ecx, esp
push edx
call fcn.004ecb80
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.004ecdb0
add esp, 0x14
mov edx, dword [eax]
add eax, 4
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9c], 1
mov dword [esp + 0x38], edx
call fcn.004ecb80
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
mov byte [esp + 0xa0], 2
call fcn.004ed080
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0xa4], 1
call fcn.004e9ee0
mov eax, dword [esp + 0x3c]
push eax
call fcn.004796fd
mov eax, dword [esp + 0x70]
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 0
call fcn.004e9ee0
mov edx, dword [esp + 0x6c]
push edx
call fcn.004796fd
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
add esp, 4
push eax
push ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0xa4], 0xffffffff
call fcn.004e9ee0
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004796fd
add esp, 4
jmp 0x4ed680
mov ecx, esi
call fcn.004b5680
mov ebx, dword [esp + 0x10]
fadd dword [ebx + 8]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x38]
push eax
fstp dword [esp + 0x50]
lea ecx, [edi + 0x10]
mov dword [esp + 0x4c], ebp
call fcn.004ec6a0
mov eax, dword [ebx + 0x18]
cmp eax, 2
mov edi, dword [edi + 0x18]
je 0x4ed677
cmp eax, 1
je 0x4ed677
cmp edi, dword [ebx + 0x14]
jle 0x4ed680
jmp 0x4ed49d
cmp edi, 0x10
jg 0x4ed49d
mov ecx, ebp
call fcn.004bf480
mov ecx, esi
mov edi, eax
call fcn.004bf480
fld dword [edi]
fadd dword [eax]
mov ecx, dword [esi + 0x260]
fld dword [edi + 4]
push 1
fadd dword [eax + 4]
push ecx
fld dword [edi + 8]
lea edx, [esp + 0x60]
fadd dword [eax + 8]
mov eax, dword [esp + 0x18]
push edx
push ebp
fstp dword [esp + 0x64]
push eax
fxch st(1)
mov ecx, esi
fmul dword [0x5999e8]
fstp dword [esp + 0x6c]
fmul dword [0x5999e8]
fstp dword [esp + 0x70]
fld dword [esp + 0x68]
fmul dword [0x5999e8]
fstp dword [esp + 0x74]
call fcn.004ef7d0
mov eax, 1
jmp 0x4ed49f