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

Disassembly:
sub esp, 0x98
mov ecx, dword [0x5f59c8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
mov eax, ecx
xor ebx, ebx
and eax, 0xff
mov ebp, dword [esi + 8]
push edi
cmp ebp, ebx
mov dword [esp + 0x10], ebx
je 0x4c89d8
cmp eax, ebx
jle 0x4c89d0
xor edi, edi
dec eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + edi*4]
push eax
push ecx
call fcn.004c9ad0
mov edx, dword [esp + 0x18]
add esp, 8
add edx, eax
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edx
jl 0x4c89a6
mov ecx, dword [0x5f59c8]
jmp 0x4c89d8
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0xb0]
mov eax, dword [esp + 0x10]
cmp ebp, eax
jl 0x4c8a2d
mov edi, dword [esp + 0xac]
mov edx, dword [esi + 8]
and ecx, 0xff
push ecx
push ebx
push edi
push edx
call fcn.004c9b10
add esp, 0x10
cmp eax, ebp
jge 0x4c8a1e
lea ecx, [edi + eax*4 + 2]
sub ebp, eax
mov byte [ecx - 2], bl
mov byte [ecx - 1], bl
mov byte [ecx], bl
mov byte [ecx + 1], bl
add ecx, 4
dec ebp
jne 0x4c8a0d
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, dword [esi]
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
mov byte [eax], bl
mov ecx, dword [esi]
mov byte [esp + 0x17], bl
mov byte [esp + 0x44], 0xff
mov byte [ecx + 1], bl
mov edx, dword [esi]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [edx + 2], bl
mov eax, dword [esi]
mov dl, 1
mov dword [esp + 0x34], 0
mov byte [eax + 3], bl
mov cl, byte [0x5f59c8]
mov eax, dword [esi]
mov dword [esp + 0x38], 0
shl dl, cl
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [eax + 4], dl
mov cl, byte [0x5f59c8]
mov eax, dword [esi]
mov dl, 1
shl dl, cl
mov byte [eax + 5], dl
mov cl, byte [0x5f59c8]
mov eax, dword [esi]
mov dl, 1
shl dl, cl
mov byte [eax + 6], dl
mov cl, byte [0x5f59c8]
mov eax, dword [esi]
mov dl, 1
shl dl, cl
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
mov byte [eax + 7], dl
mov eax, dword [0x5f59c8]
mov edx, dword [esi]
and eax, 0xff
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call fcn.004c9250
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
mov eax, dword [esi + 4]
mov edi, 1
add esp, 0x14
cmp ebp, edi
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
mov dword [esp + 0x10], edi
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fdiv dword [esp + 0x2c]
fsubr dword [esp + 0x40]
fstp dword [eax]
jle 0x4c8e6d
jmp 0x4c8b36
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0xb0]
fld dword [0x58b524]
xor ecx, ecx
cmp edi, ebx
mov dword [esp + 0x24], 0xffffffff
jle 0x4c8f53
mov edx, dword [esi + 4]
fcom dword [edx]
fnstsw ax
test ah, 5
jp 0x4c8b62
fstp st(0)
fld dword [edx]
mov dword [esp + 0x24], ecx
inc ecx
add edx, 4
cmp ecx, edi
jl 0x4c8b51
mov ecx, dword [esp + 0x24]
cmp ecx, 0xffffffff
fstp st(0)
je 0x4c8e6d
mov eax, dword [esi]
mov ebp, dword [esi + 8]
lea edi, [ecx*8]
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x20], eax
add edi, eax
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
call fcn.004c9070
mov eax, dword [0x5f59c8]
lea edx, [esp + 0x90]
push edx
and eax, 0xff
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
call fcn.004c9250
lea edx, [esp + 0xa4]
lea eax, [esp + 0x60]
push edx
push eax
push 1
push edi
push ebp
call fcn.004c9440
fstp dword [esp + 0x7c]
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x44]
push ecx
push edx
push 2
push edi
push ebp
call fcn.004c9440
fstp dword [esp + 0x94]
add esp, 0x40
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 3
push edi
push ebp
call fcn.004c9440
fstp dword [esp + 0x3c]
lea edx, [esp + 0xa0]
lea eax, [esp + 0x60]
push edx
push eax
push 4
push edi
push ebp
call fcn.004c9440
fld dword [esp + 0x78]
fcomp dword [0x58b524]
add esp, 0x28
fnstsw ax
test ah, 0x41
jp 0x4c8c78
fld dword [esp + 0x54]
fcomp dword [0x58b524]
fnstsw ax
test ah, 0x41
jp 0x4c8c78
fld dword [esp + 0x28]
fcomp dword [0x58b524]
fnstsw ax
test ah, 0x41
jp 0x4c8c78
fcom dword [0x58b524]
fnstsw ax
test ah, 0x41
jnp 0x4c8e3e
fld dword [esp + 0x50]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
fcomp dword [esp + 0x54]
mov edx, dword [edi]
lea ebp, [eax*8]
mov dword [ecx + ebp], edx
mov edx, dword [edi + 4]
fnstsw ax
mov dword [ecx + ebp + 4], edx
and eax, 0x100
jne 0x4c8cd0
fld dword [esp + 0x50]
fcomp dword [esp + 0x28]
fnstsw ax
and eax, 0x100
jne 0x4c8cfd
fld dword [esp + 0x50]
fcompp
fnstsw ax
and eax, 0x100
jne 0x4c8d19
mov al, byte [esp + 0x48]
mov byte [ecx + ebp], al
mov byte [edi + 4], al
jmp 0x4c8d24
fld dword [esp + 0x54]
fcomp dword [esp + 0x28]
fnstsw ax
and eax, 0x100
jne 0x4c8cfd
fld dword [esp + 0x54]
fcompp
fnstsw ax
and eax, 0x100
jne 0x4c8d19
mov al, byte [esp + 0x18]
mov byte [ecx + ebp + 1], al
mov byte [edi + 5], al
jmp 0x4c8d24
fld dword [esp + 0x28]
fcompp
fnstsw ax
and eax, 0x100
jne 0x4c8d19
mov al, byte [esp + 0x20]
mov byte [ecx + ebp + 2], al
mov byte [edi + 6], al
jmp 0x4c8d24
mov al, byte [esp + 0x4c]
mov byte [ecx + ebp + 3], al
mov byte [edi + 7], al
mov eax, dword [esp + 0x24]
mov edi, dword [esi]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x2c]
shl eax, 3
push edx
add edi, eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], bl
call fcn.004c9070
mov ecx, dword [0x5f59c8]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
and ecx, 0xff
push edi
lea edx, [esp + 0x64]
push ecx
push edx
push eax
call fcn.004c9250
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x88]
mov byte [esp + 0x74], bl
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
push eax
mov byte [esp + 0x79], bl
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], bl
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
faddp st(1)
fdiv dword [esp + 0x48]
fsubr dword [esp + 0x5c]
fstp dword [ecx + edx*4]
mov edi, dword [esi]
add edi, ebp
mov ebp, dword [esi + 8]
call fcn.004c9070
mov edx, dword [0x5f59c8]
lea ecx, [esp + 0x8c]
push ecx
and edx, 0xff
push edi
lea eax, [esp + 0x80]
push edx
push eax
push ebp
call fcn.004c9250
fld dword [esp + 0xb0]
fmul dword [esp + 0xb0]
fld dword [esp + 0xac]
fmul dword [esp + 0xac]
mov ecx, dword [esi + 4]
add esp, 0x30
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fdiv dword [esp + 0x70]
fsubr dword [esp + 0x84]
mov edx, dword [esp + 0x10]
fstp dword [ecx + edx*4]
jmp 0x4c8e53
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x24]
fstp st(0)
mov dword [eax + ecx*4], ebx
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xb0]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4c8b2b
mov ebp, ecx
xor edi, edi
cmp ebp, ebx
jle 0x4c905b
mov edx, dword [esp + 0xac]
cmp edi, ebp
lea eax, [edx + 2]
mov dword [esp + 0x20], eax
jge 0x4c9040
mov eax, dword [esi]
mov ecx, dword [0x5f59c8]
lea ebp, [edi*8]
push edi
add eax, ebp
and ecx, 0xff
push eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x50]
push ecx
push edx
push eax
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], bl
call fcn.004c9090
mov edx, dword [esi]
mov eax, dword [0x5f59c8]
lea ecx, [esp + 0x40]
add edx, ebp
push ecx
and eax, 0xff
push edx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x38]
push eax
push ecx
push edx
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov byte [esp + 0x6c], 0xff
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
call fcn.004c9250
fld dword [esp + 0x54]
fcomp dword [0x58b524]
add esp, 0x28
fnstsw ax
and eax, 0x4100
jne 0x4c8f5a
fld dword [0x5bfc58]
fdiv dword [esp + 0x2c]
fstp dword [esp + 0x14]
jmp 0x4c8f62
fstp st(0)
jmp 0x4c8e6d
mov dword [esp + 0x14], 0
fld dword [esp + 0x30]
fmul dword [esp + 0x14]
fstp dword [esp + 0x18]
fnstcw word [esp + 0x58]
fld dword [esp + 0x18]
mov ax, word [esp + 0x58]
or ah, 0xc
mov word [esp + 0x5c], ax
fldcw word [esp + 0x5c]
fistp dword [esp + 0x64]
fldcw word [esp + 0x58]
fld dword [esp + 0x34]
fmul dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov al, byte [esp + 0x64]
mov byte [ecx - 2], al
fstp dword [esp + 0x18]
fnstcw word [esp + 0x54]
fld dword [esp + 0x18]
mov ax, word [esp + 0x54]
or ah, 0xc
mov word [esp + 0x4c], ax
fldcw word [esp + 0x4c]
fistp dword [esp + 0x60]
fldcw word [esp + 0x54]
fld dword [esp + 0x38]
fmul dword [esp + 0x14]
mov dl, byte [esp + 0x60]
mov byte [ecx - 1], dl
fstp dword [esp + 0x18]
fnstcw word [esp + 0x24]
fld dword [esp + 0x18]
mov ax, word [esp + 0x24]
or ah, 0xc
mov word [esp + 0x50], ax
fldcw word [esp + 0x50]
fistp dword [esp + 0x68]
fldcw word [esp + 0x24]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
mov al, byte [esp + 0x68]
mov byte [ecx], al
fstp dword [esp + 0x18]
fnstcw word [esp + 0x10]
fld dword [esp + 0x18]
mov ax, word [esp + 0x10]
or ah, 0xc
mov word [esp + 0x28], ax
fldcw word [esp + 0x28]
fistp dword [esp + 0x6c]
fldcw word [esp + 0x10]
mov dl, byte [esp + 0x6c]
mov ebp, dword [esp + 0xb0]
mov byte [ecx + 1], dl
mov eax, ecx
jmp 0x4c904b
mov byte [eax - 2], bl
mov byte [eax - 1], bl
mov byte [eax], bl
mov byte [eax + 1], bl
inc edi
add eax, 4
cmp edi, ebp
mov dword [esp + 0x20], eax
jl 0x4c8e8d
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x98
ret