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

Disassembly:
sub esp, 0x3ec
mov eax, dword [0x6eb40c]
mov ecx, dword [eax + 0xc]
push ebx
push ebp
mov ebp, dword [0x852394]
push esi
push edi
or edx, 0xffffffff
mov edi, ebp
mov dword [esp + 0x2c], ecx
mov word [0x852390], 0
call fcn.004ce970
mov edi, eax
cmp edi, 0xffffffff
je 0x4ec9f6
lea ebx, [ebx]
mov ecx, dword [ebp + 0x34]
mov esi, edi
and esi, 0xffff
imul esi, esi, 0x7c
mov eax, dword [ecx + esi + 0x58]
and byte [ecx + esi + 2], 0xf7
add ecx, esi
cmp eax, 0xffffffff
mov dword [ecx + 8], 0xffffffff
je 0x4ec9ad
mov edx, dword [esp + 0x2c]
sub edx, eax
mov eax, dword [ecx + 4]
and eax, 0xffff
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov edx, dword [0x86cff4]
shl eax, 5
mov eax, dword [eax + edx + 0x14]
fcomp dword [eax + 0xf4]
fnstsw ax
test ah, 0x41
jne 0x4ec96a
mov ecx, dword [ebp + 0x34]
lea edx, [esi + ecx + 0x10]
push edx
push edi
mov ebx, 0x8523a0
call fcn.0054da00
add esp, 8
mov edx, edi
mov eax, ebp
call fcn.004ce850
jmp 0x4ec9ad
mov ecx, dword [ecx + 0x2c]
push 0xffffffffffffffff
call fcn.004f2aa0
add esp, 4
test eax, eax
je 0x4ec9ad
mov ebp, dword [ebp + 0x34]
mov al, byte [ebp + esi + 2]
add ebp, esi
test al, 2
je 0x4ec99e
lea eax, [ebp + 0x10]
push eax
push edi
mov ebx, 0x8523a0
call fcn.0054da00
add esp, 8
and byte [ebp + 2], 0xfb
push edi
call fcn.004ee5c0
mov ebp, dword [0x852394]
add esp, 4
lea ecx, [edi + 1]
or esi, 0xffffffff
test cx, cx
jl 0x4ec9eb
mov di, word [ebp + 0x2e]
cmp cx, di
jge 0x4ec9eb
movsx edx, word [ebp + 0x22]
mov ebx, dword [ebp + 0x34]
movsx eax, cx
imul eax, edx
add eax, ebx
cmp word [eax], 0
jne 0x4ec9e0
inc ecx
add eax, edx
cmp cx, di
jl 0x4ec9d0
jmp 0x4ec9eb
movsx esi, word [eax]
movsx ecx, cx
shl esi, 0x10
or esi, ecx
cmp esi, 0xffffffff
mov edi, esi
jne 0x4ec8f0
mov edx, dword [0x852044]
push 0x4ef210
push 0x4ef1e0
push 0x4ef0f0
push 0x4ef0c0
push 0x4ef080
inc edx
push 0x80
push 0x85204c
mov dword [0x852044], edx
mov byte [0x852040], 1
call fcn.0054fe00
add esp, 0x1c
mov word [0x852048], ax
mov byte [0x852040], 0
mov dword [0x7b2d00], 0
call fcn.00521fb0
xor esi, esi
cmp word [0x7c1c10], si
jle 0x4eca7f
lea esp, [esp]
movsx edx, si
imul edx, edx, 0x1a0
mov cx, word [edx + 0x7b4c10]
call fcn.0050f600
inc esi
cmp si, word [0x7c1c10]
jl 0x4eca60
cmp word [0x852048], 0
mov dword [esp + 0x28], 0
jle 0x4ed15f
jmp 0x4ecaa0
movsx eax, word [esp + 0x28]
mov ebp, dword [eax*4 + 0x85204c]
mov ecx, dword [0x852394]
mov ebx, dword [ecx + 0x34]
mov eax, dword [0x86cff4]
mov dword [esp + 0x60], ebp
and ebp, 0xffff
imul ebp, ebp, 0x7c
mov edx, dword [ebp + ebx + 4]
add ebp, ebx
and edx, 0xffff
shl edx, 5
mov edi, dword [edx + eax + 0x14]
mov eax, dword [ebp + 0x2c]
cmp eax, 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x3f800000
je 0x4ecb48
mov edx, eax
xor ebx, ebx
sar edx, 0x10
test ax, ax
jl 0x4ecb2d
mov ecx, dword [0x851c30]
cmp ax, word [ecx + 0x20]
jge 0x4ecb2d
movsx ecx, word [ecx + 0x22]
movsx esi, ax
imul ecx, esi
mov esi, dword [0x851c30]
add ecx, dword [esi + 0x34]
mov si, word [ecx]
test si, si
je 0x4ecb2d
test dx, dx
je 0x4ecb2b
cmp si, dx
jne 0x4ecb2d
mov ebx, ecx
xor edx, edx
test ebx, ebx
je 0x4ecb44
mov cl, byte [ebx + 3]
mov esi, 1
shl esi, cl
test esi, esi
je 0x4ecb44
mov edx, dword [ebx + 8]
mov esi, edx
jmp 0x4ecb4a
xor esi, esi
mov ecx, dword [ebp + 0x58]
cmp ecx, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x4ecbd3
mov cx, word [ebp + 0x5e]
cmp cx, 0xffff
jne 0x4ecb6a
mov dword [esp + 0x10], 0x3f800000
jmp 0x4ecb8c
and eax, 0xffff
lea edx, [eax + eax*2]
mov eax, dword [0x851c30]
mov eax, dword [eax + 0x34]
mov edx, dword [eax + edx*4 + 8]
movsx ecx, cx
fld dword [edx + ecx*4 + 0x134]
fstp dword [esp + 0x10]
mov ax, word [ebp + 0x60]
cmp ax, 0xffff
jne 0x4ecb9e
mov edi, dword [0x680af4]
jmp 0x4ecbab
movsx eax, ax
lea eax, [eax + eax*2]
lea edi, [esi + eax*4 + 0x1b8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea edx, [eax + 0x38]
push ecx
push edx
mov edx, dword [eax + 0x34]
lea esi, [ebp + 0x14]
lea ebx, [eax + 0x48]
call fcn.0043f7e0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 8
jmp 0x4ecc1f
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ecx
mov cx, word [edi + 0xfa]
fdiv dword [edi + 0xf4]
fstp dword [esp]
call fcn.004cae00
fsubr dword [0x66c410]
mov ebx, dword [edi + 0x34]
lea edx, [ebp + 0x14]
lea eax, [edi + 0x4c]
fmul dword [ebp + 0x78]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push ecx
push ebx
lea ecx, [edi + 0x3c]
push edx
call fcn.0043f6b0
add esp, 0x10
test esi, esi
fld dword [0x66c410]
fsub dword [esp + 0x10]
fstp dword [esp + 0x20]
je 0x4ecce7
mov eax, dword [ebp + 0x2c]
or ecx, 0xffffffff
cmp eax, 0xffffffff
je 0x4ecc69
mov edx, dword [0x851c30]
mov edx, dword [edx + 0x34]
lea esp, [esp]
mov ecx, eax
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov eax, dword [eax + 0x11c]
cmp eax, 0xffffffff
jne 0x4ecc50
mov edx, dword [0x851c30]
mov eax, dword [edx + 0x34]
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
mov edx, dword [eax + ecx*4 + 8]
mov cl, byte [edx + 0xb4]
mov eax, 1
shl eax, cl
test al, 3
je 0x4ecce7
fld dword [edx + 0x37c]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x4ecce7
mov ecx, dword [ebp + 4]
mov eax, dword [0x86cff4]
and ecx, 0xffff
shl ecx, 5
mov ecx, dword [ecx + eax + 0x14]
test byte [ecx], 0x20
jne 0x4ecce7
fld dword [0x66c410]
fsub dword [edx + 0x37c]
fst dword [esp + 0x1c]
fmul dword [ebp + 0x14]
fstp dword [ebp + 0x14]
fld dword [esp + 0x1c]
fmul dword [ebp + 0x18]
fstp dword [ebp + 0x18]
fld dword [esp + 0x1c]
fmul dword [ebp + 0x1c]
fstp dword [ebp + 0x1c]
fld dword [0x66c40c]
lea ecx, [ebp + 0x14]
fld dword [ecx]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4ecd27
fld dword [0x66c40c]
fld dword [ebp + 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4ecd27
fld dword [0x66c40c]
fld dword [ebp + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4ed149
mov esi, dword [esp + 0x14]
test byte [ebp + 2], 1
je 0x4ecef2
fld dword [esp + 0x20]
fmul dword [edi + 8]
fld dword [esp + 0x10]
fmul dword [edi + 0xc]
faddp st(1)
fmul dword [edi + 4]
fst dword [ebp + 0x54]
fld dword [0x66c40c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4ecefa
mov edx, dword [ebp + 4]
fstp dword [esp + 0x98]
mov eax, dword [0x86cff4]
and edx, 0xffff
shl edx, 5
mov edx, dword [edx + eax + 0x14]
mov dword [esp + 0x64], edx
lea eax, [ebp + 0x30]
mov edx, dword [eax]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
lea edx, [ebp + 0x3c]
mov eax, dword [edx]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
lea eax, [ebp + 0x48]
mov edx, dword [eax]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x84], edx
mov edx, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x90], eax
cmp dword [ebp + 0x58], 0xffffffff
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], ecx
jne 0x4ecea7
test byte [edi], 0x10
je 0x4ece16
mov edi, dword [ebp + 0x2c]
lea edx, [esp + 0x68]
push edx
lea esi, [esp + 0x84]
lea ebx, [esp + 0x78]
call fcn.00491210
add esp, 4
jmp 0x4ece9f
cmp word [esi + 0xb4], 2
jne 0x4ecea7
cmp dword [esi + 0x11c], 0xffffffff
je 0x4ecea7
mov edx, dword [ebp + 0x2c]
mov esi, dword [0x851c30]
mov esi, dword [esi + 0x34]
mov cx, word [ebp + 0x5c]
mov eax, edx
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [esi + eax*4 + 8]
mov eax, dword [eax]
mov esi, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
test cx, cx
mov eax, dword [eax + esi + 0x14]
jl 0x4ece80
mov esi, dword [eax + 0x140]
movsx ecx, cx
cmp ecx, esi
jge 0x4ece80
mov eax, dword [eax + 0x144]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*8 + 0x10]
jmp 0x4ece82
xor eax, eax
lea ecx, [esp + 0x68]
push ecx
push eax
lea esi, [esp + 0x88]
lea edi, [esp + 0x7c]
call fcn.004912c0
add esp, 8
test al, al
je 0x4ecea3
or byte [ebp + 2], 8
mov edi, dword [esp + 0x18]
mov eax, dword [0x7b2d00]
or ebx, 0xffffffff
cmp eax, 0x80
jge 0x4ecee1
mov ebx, eax
mov edi, ebx
imul edi, edi, 0x38
inc eax
add edi, 0x7b2d04
mov dword [0x7b2d00], eax
mov ecx, 0xe
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x64]
call fcn.00522010
mov edi, dword [esp + 0x18]
mov dx, bx
inc dx
mov dword [ebp + 8], ebx
mov word [0x852390], dx
jmp 0x4ecefc
mov eax, dword [edi + 4]
mov dword [ebp + 0x54], eax
jmp 0x4ecefc
fstp st(0)
mov eax, dword [edi + 0xb8]
cmp eax, 0xffffffff
je 0x4ed149
mov ecx, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
mov edx, dword [eax + ecx + 0x14]
lea eax, [ebp + 0x14]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], 0x437f0000
mov edx, dword [esp + 0x20]
fld dword [esp + 0x1c]
fld dword [edx]
fld dword [edx + 4]
fld dword [edx + 8]
fld dword [esp + 0x5c]
fmul st(4), st(0)
fmul st(3), st(0)
fmul st(2), st(0)
fmulp st(1)
fistp dword [esp + 0x24]
and dword [esp + 0x24], 0xff
mov edx, dword [esp + 0x24]
fistp dword [esp + 0x24]
and dword [esp + 0x24], 0xff
shl dword [esp + 0x24], 8
or edx, dword [esp + 0x24]
fistp dword [esp + 0x24]
and dword [esp + 0x24], 0xff
shl dword [esp + 0x24], 0x10
or edx, dword [esp + 0x24]
fistp dword [esp + 0x24]
shl dword [esp + 0x24], 0x18
or edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
fld dword [esp + 0x10]
fmul dword [0x66c4a8]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fistp dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov cl, byte [esp + 0x58]
mov dl, byte [0x7b498a]
mov word [esp + 0x4e], ax
sar eax, 0x10
cmp ax, 0xffff
mov byte [esp + 0x53], cl
mov byte [esp + 0x52], dl
mov word [esp + 0x4c], ax
jne 0x4ecfe5
mov word [esp + 0x4c], 0
cmp dword [ebp + 0x58], 0xffffffff
jne 0x4ed10a
mov esi, dword [ebp + 0x2c]
mov edx, dword [0x851c30]
mov edx, dword [edx + 0x34]
mov cx, word [ebp + 0x5c]
mov eax, esi
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [eax]
mov eax, dword [0x86cff4]
and edx, 0xffff
shl edx, 5
test cx, cx
mov eax, dword [edx + eax + 0x14]
jl 0x4ed042
mov edx, dword [eax + 0x140]
movsx ecx, cx
cmp ecx, edx
jge 0x4ed042
mov edx, dword [eax + 0x144]
lea ecx, [ecx + ecx*8]
lea ebx, [edx + ecx*8 + 0x10]
jmp 0x4ed044
xor ebx, ebx
mov eax, dword [esp + 0x14]
cmp word [eax + 0xb4], 2
jne 0x4ed094
cmp dword [eax + 0x11c], 0xffffffff
je 0x4ed094
push esi
call fcn.004926a0
add esp, 4
cmp word [0x7b4988], ax
jne 0x4ed094
push 8
lea eax, [esp + 0xa0]
push eax
push ebx
push esi
call fcn.00491160
add esp, 0x10
test ax, ax
mov dword [esp + 0x14], eax
jle 0x4ed092
or byte [esp + 0x52], 0x80
test ax, ax
jne 0x4ed0af
mov edx, dword [ebp + 0x2c]
push 8
lea ecx, [esp + 0xa0]
push ecx
push ebx
push edx
call fcn.004f1c60
add esp, 0x10
mov dword [esp + 0x14], eax
xor edi, edi
test ax, ax
jle 0x4ed149
lea ebp, [esp + 0xd8]
lea eax, [ebp + 0x24]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov esi, ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.0050eed0
lea esi, [ebp + 0x18]
mov dword [esp + 0x40], eax
call fcn.0050eed0
lea ebx, [esp + 0x30]
mov dword [esp + 0x44], eax
mov word [esp + 0x50], di
call fcn.0050f4a0
inc edi
add ebp, 0x6c
cmp di, word [esp + 0x14]
jl 0x4ed0c1
jmp 0x4ed149
lea ecx, [ebp + 0x30]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
lea esi, [ebp + 0x3c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call fcn.0050eed0
lea esi, [ebp + 0x48]
mov dword [esp + 0x40], eax
call fcn.0050eed0
lea ebx, [esp + 0x30]
mov dword [esp + 0x44], eax
mov word [esp + 0x50], 0
call fcn.0050f4a0
mov eax, dword [esp + 0x28]
inc eax
cmp ax, word [0x852048]
mov dword [esp + 0x28], eax
jl 0x4ecaa0
xor esi, esi
cmp word [0x85238c], si
jle 0x4ed1a0
lea ebx, [ebx]
movsx eax, si
lea ebx, [eax + eax*4]
lea ebx, [ebx*8 + 0x85224c]
call fcn.0050f4a0
inc esi
cmp si, word [0x85238c]
jl 0x4ed170
pop edi
pop esi
pop ebp
mov word [0x85238c], 0
pop ebx
add esp, 0x3ec
ret
pop edi
mov word [0x85238c], si
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret